Actions

Difference between revisions of "ICC"

From XnView Wiki

(Created page with 'extern GFLEXTERN GFL_BOOL GFLAPI gflBitmapHasICCProfile( const GFL_BITMAP* bitmap ); extern GFLEXTERN void GFLAPI gflBitmapRemoveICCProfile( GFL_BITMAP* bitmap ); extern GFLE…')
 
m (Reverted edits by Akajavim (Talk) to last revision by WikiSysop)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
extern GFLEXTERN GFL_BOOL GFLAPI gflBitmapHasICCProfile( const GFL_BITMAP* bitmap );
== gflBitmapHasICCProfile ==


extern GFLEXTERN void GFLAPI gflBitmapRemoveICCProfile( GFL_BITMAP* bitmap );
The gflBitmapHasICCProfile function is used to know if the picture has an ICC profile.


extern GFLEXTERN void GFLAPI gflBitmapGetICCProfile( const GFL_BITMAP* bitmap, GFL_UINT8** pData, GFL_UINT32* pLength ); /* pData must be freed by gflFreeMemory */
GFL_BOOL <b>gflBitmapHasICCProfile</b>(  
  const GFL_BITMAP* bitmap  
);  


extern GFLEXTERN void GFLAPI gflBitmapCopyICCProfile( const GFL_BITMAP* bitmap_src, GFL_BITMAP* bitmap_dst );
'''Parameters'''
 
:bitmap
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure.
 
'''Return value'''
:The function returns GFL_TRUE if the bitmap has an ICC profile.
 
'''See also'''
:[[IPTC#gflBitmapHasIPTC|gflBitmapHasIPTC]], [[EXIF#gflBitmapGetEXIF|gflBitmapGetEXIF]]
 
== gflBitmapRemoveICCProfile ==
 
The gflBitmapRemoveICCProfile removes the ICC profile.
 
void <b>gflBitmapRemoveICCProfile</b>(
  GFL_BITMAP* bitmap
);
 
'''Parameters'''
 
:bitmap
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure.
 
== gflBitmapGetICCProfile ==
 
The gflBitmapGetICCProfile function gets data of ICC profile
 
void <b>gflBitmapGetICCProfile</b>(
  const GFL_BITMAP* bitmap,
  GFL_UINT8** pData,
  GFL_UINT32* pLength
);
 
'''Parameters'''
 
:bitmap
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure.
:pData
::Address of a pointer to receive the allocated data
::Must freed by gflFreeMemory
:pLength
::Address of a GFL_UINT32 to receive the length of data
 
 
== gflBitmapCopyICCProfile ==
 
The gflBitmapCopyICCProfile function allows to copy an ICC profile from a bitmap to another.
 
void <b>gflBitmapCopyICCProfile</b>(  
  const GFL_BITMAP* bitmap_src,  
  GFL_BITMAP* bitmap_dst  
  );
 
'''Parameters'''
 
:bitmap_src
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure.
:bitmap_dst
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure that receive the ICC profile
 
[[Category: GFLSDK Reference Manual]]

Latest revision as of 15:25, 22 November 2010

gflBitmapHasICCProfile

The gflBitmapHasICCProfile function is used to know if the picture has an ICC profile.

GFL_BOOL gflBitmapHasICCProfile( 
  const GFL_BITMAP* bitmap 
); 

Parameters

bitmap
Pointer to a GFL_BITMAP structure.

Return value

The function returns GFL_TRUE if the bitmap has an ICC profile.

See also

gflBitmapHasIPTC, gflBitmapGetEXIF

gflBitmapRemoveICCProfile

The gflBitmapRemoveICCProfile removes the ICC profile.

void gflBitmapRemoveICCProfile( 
  GFL_BITMAP* bitmap 
); 

Parameters

bitmap
Pointer to a GFL_BITMAP structure.

gflBitmapGetICCProfile

The gflBitmapGetICCProfile function gets data of ICC profile

void gflBitmapGetICCProfile( 
  const GFL_BITMAP* bitmap, 
  GFL_UINT8** pData, 
  GFL_UINT32* pLength 
); 

Parameters

bitmap
Pointer to a GFL_BITMAP structure.
pData
Address of a pointer to receive the allocated data
Must freed by gflFreeMemory
pLength
Address of a GFL_UINT32 to receive the length of data


gflBitmapCopyICCProfile

The gflBitmapCopyICCProfile function allows to copy an ICC profile from a bitmap to another.

void gflBitmapCopyICCProfile( 
  const GFL_BITMAP* bitmap_src, 
  GFL_BITMAP* bitmap_dst 
 );

Parameters

bitmap_src
Pointer to a GFL_BITMAP structure.
bitmap_dst
Pointer to a GFL_BITMAP structure that receive the ICC profile