Sack Library Documentation
ContentsIndexReferenceHome
Example

This pretends that you have a FILE* open to some image already, and that the image is tiny (less than 4k bytes).

char buffer[4096];
int length;
length = fread( buffer, 1, 4096, some_file );
      
Image image = DecodeMemoryToImage( buffer, length );
if( image )
{
   // buffer decoded okay.
}
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.