CAPicture::ToStream

This page contains changes which are not marked for translation.

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 .NET System.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


You are not allowed to post comments.