Difference between revisions of "CAPicture::ToStream"
(Created page with "Category:ADE User Guide ADE User Guide > ADE Server Class Reference > CAPicture <languages /> <translate> = bool ToStream(stream, mimeType) = ==Description==...") |
(No difference)
|
Latest revision as of 00:26, 2 June 2017
ADE User Guide > ADE Server Class Reference > CAPicture
bool ToStream(stream, mimeType)
Description
Writes the in-memory image to a stream in the specified «mimeType» format. The stream is a Windows IStream
object.
- Note: Note: An
IStream
is not interchangeable with a .NETSystem.Io.Stream
object (including a Response.OutputStream object in ASP.NET). A wrapper class is necessary for converting between these. TBD: The Wrapper class and more instructions should be included here.
Return value
Boolean (success)
Parameters
- stream – string
- mimeType – string, usually one of:
"image/png"
"image/jpeg"
"image/bmp"
"image/tiff"
Usage
b = pict.ToStream( outStream, "image/jpeg")
See Also
Comments
Enable comment auto-refresher