All functions   Mac OS X   Windows   Crossplatform   Server   Components   Guides   Statistic  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8   2.9   3.0   3.1   3.2  

GMImage.WriteToPNGContainer

Component: GraphicsMagick
Version: 2.0
Mac OS X: Works
Windows: Works
Server: Works

MBS( "GMImage.WriteToPNGContainer"; ImageRef; Filename )

Parameters

Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1
Filename Optional, the file name to use for the container. Default is "image.png" "ball.png"

Result

Returns a container value.

Description

Writes the picture in PNG format to a container object which you can store in a container field.
For preview a JPEG version is included as well as a file name "image.png" and the image size.
See also GMImage.WriteToJPEGContainer, GMImage.WriteToBMPContainer and GMImage.WriteToGIFContainer.

Examples

Get a container value from the picture in PNG format.

MBS( "GMImage.WriteToPNGContainer"; $MyImageRef; "logo.png" )

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Nachhilfe Nickenich