Code: Select all
__fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner)
{
GFL_LOAD_PARAMS load_option;
GFL_BITMAP *bitmap;
GFL_FILE_INFORMATION file_info;
GFL_ERROR error;
gflLibraryInit();
gflEnableLZW( GFL_TRUE );
gflGetDefaultLoadParams( &load_option );
error = gflLoadBitmap( "D:\\C++ projekti\\_probni\\picture load demo\\XYZ.png", &bitmap, &load_option, &file_info );
gflLibraryExit();
}
I looked at Delphi sample code, but it seems pretty complicated.
Could somebody help me or send some example code?
TIA, Voja