Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.29 KB

GdipSetPropertyItem.md

File metadata and controls

63 lines (43 loc) · 1.29 KB

Home

Function name : GdipSetPropertyItem

Group: GDI+ Image - Library: gdiplus


Sets a property item (piece of metadata) for this Image object.


Code examples:

GDI+: reading and writing metadata in JPEG and TIFF files

Declaration:

GpStatus WINGDIPAPI GdipSetPropertyItem(
	GpImage *image,
	GDIPCONST PropertyItem* item
)
  

FoxPro declaration:

DECLARE INTEGER GdipSetPropertyItem IN gdiplus;
	INTEGER  img,;
	STRING @ itm
  

Parameters:

img [in] Handle to Image Object

item [in] Pointer to a PropertyItem object that specifies the property item to be set.


Return value:

Returns GpStatus value, 0 means success.


Comments:

If the item already exists, then its contents are updated; otherwise, a new item is added. Certain image formats (for example, ICON and EMF) do not support properties.

struct PropertyItem {   
    LONG id;       //type of metadata  
    ULONG length;  // size in bytes of the value array  
    WORD type;     // data type  
    LPVOID value;  // pointer to array of values  
};