Got Penguin sample running under Windows.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-10 12:04:02 +00:00
parent b669a48e12
commit 45b5751fb4
11 changed files with 148 additions and 23 deletions

View File

@@ -46,6 +46,10 @@ Creates an image with the given width and height.
Loads an image from a file.
\func{}{wxImage}{\param{wxInputStream\& }{stream}, \param{long}{ type = wxIMAGE\_TYPE\_PNG}}
Loads an image from an input stream.
\wxheading{Parameters}
\docparam{width}{Specifies the width of the image.}
@@ -54,6 +58,8 @@ Loads an image from a file.
\docparam{name}{This refers to an image filename. Its meaning is determined by the {\it type} parameter.}
\docparam{stream}{This refers to an input stream. Its meaning is determined by the {\it type} parameter. It is equal to loading from file except that you provide opened stream (file, HTTP or any other custom class).}
\docparam{type}{May be one of the following:
\twocolwidtha{5cm}
@@ -269,11 +275,18 @@ of a given handler class in an application session.}
Loads an image from a file.
\func{bool}{LoadFile}{\param{wxInputStream\&}{ stream}, \param{long}{ type}}
Loads an image from an input stream.
\wxheading{Parameters}
\docparam{name}{A filename.
The meaning of {\it name} is determined by the {\it type} parameter.}
\docparam{stream}{An input stream.
The meaning of {\it stream} data is determined by the {\it type} parameter.}
\docparam{type}{One of the following values:
\twocolwidtha{5cm}
@@ -321,10 +334,16 @@ TRUE if the handler was found and removed, FALSE otherwise.
Saves a image in the named file.
\func{bool}{SaveFile}{\param{wxOutputStream\& }{stream}, \param{int}{ type}}
Saves a image in the given stream.
\wxheading{Parameters}
\docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
\docparam{stream}{An output stream. The meaning of {\it stream} is determined by the {\it type} parameter.}
\docparam{type}{Currently only one type can be used:
\twocolwidtha{5cm}
@@ -484,16 +503,16 @@ Gets the image type associated with this handler.
\membersection{wxImageHandler::LoadFile}\label{wximagehandlerloadfile}
\func{bool}{LoadFile}{\param{wxImage* }{image}, \param{const wxString\&}{ name}}
\func{bool}{LoadFile}{\param{wxImage* }{image}, \param{wxInputStream\&}{ stream}}
Loads a image from a file or resource, putting the resulting data into {\it image}.
Loads a image from a stream, putting the resulting data into {\it image}.
\wxheading{Parameters}
\docparam{image}{The image object which is to be affected by this operation.}
\docparam{name}{Either a filename or a Windows resource name.
The meaning of {\it name} is determined by the {\it type} parameter.}
\docparam{stream}{Opened input stream.
The meaning of {\it stream} is determined by the {\it type} parameter.}
\wxheading{Return value}
@@ -507,15 +526,15 @@ TRUE if the operation succeeded, FALSE otherwise.
\membersection{wxImageHandler::SaveFile}\label{wximagehandlersavefile}
\func{bool}{SaveFile}{\param{wxImage* }{image}, \param{const wxString\& }{name}}
\func{bool}{SaveFile}{\param{wxImage* }{image}, \param{wxOutputStream\& }{stream}}
Saves a image in the named file.
Saves a image in the output stream.
\wxheading{Parameters}
\docparam{image}{The image object which is to be affected by this operation.}
\docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
\docparam{stream}{A stream. The meaning of {\it stream} is determined by the {\it type} parameter.}
\wxheading{Return value}