DocumentImage.set Method¶
Module: DocumentImage
Definition¶
Sets the Image object fields.
Warning
This function does not allocate any memory and is unsafe! The user must handle the pixels pointer carefully.
public static DocumentImage Set(int width, int height, PixelFormat pixelFormat, IntPtr pixels)
Parameters
width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.pixelFormat
PixelFormatin The pixel format of the image.pixels
IntPtrin A pointer to the image pixels of the image.
Returns
The newly created document image.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentImage_Set (
ID3_DOCUMENT_IMAGE hDocumentImage,
int width,
int height,
id3DocumentPixelFormat ePixelFormat,
void * pixels)
Parameters
hDocumentImage
ID3_DOCUMENT_IMAGEin Handle to the DocumentImage object.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.ePixelFormat
id3DocumentPixelFormatin The pixel format of the image.pixels
void *in A pointer to the image pixels of the image.
Returns