My favorites | Sign in
Logo
                
Search
for
Updated May 31, 2009 by soubok
Labels: doc
jsimage  
jsimage module

If something seems wrong or incomplete, please enter a comment at the bottom of this page.



- source - main - QA -

jsimage module

This module manage jpeg and png image decomppression and png image compression. Supported output format:
  1. Gray
2:Gray,Alpha 3:Red,Green,Blue 4:Red,Green,Blue,Alpha


jsimage static members

- top - revision -

DecodeJpegImage

imageObject DecodeJpegImage( streamObject )
This function returns an image object that represents the decompressed jpeg image given as argument.

The streamObject argument is any object that supports the NIStreamRead Native Interface ( file, socket, new Stream(buffer), ... )

For further details about stream objects, see jslang::Stream object and NativeInterface mechanism.

DecodePngImage

imageObject DecodePngImage( streamObject )
This function returns an image object that represents the decompressed png image given as argument.

The streamObject argument is any object that supports the NIStreamRead Native Interface ( file, socket, new Stream(buffer), ... )

For further details about stream objects, see jslang::Stream object and NativeInterface mechanism.

- top - main -


Sign in to add a comment
Hosted by Google Code