GifPartialImage

The GifPartialImage method writes the part of image to GIF format.

GifPartialImage nTransparent, nInterlaced, sFileName, nXStart, nYStart, xEnd, nYEnd

Parameters

nTransparent
Specifies should GIF file have transparent color.
If nTransparent is zero or grater, this is the number of transparent color in the image palette.
If nTransparent is -1, the GIF image will not have transparent color.

nInterlaced
Specifies should GIF file be interlaced. If this parameter is zero, GIF file will not be interlaced. Otherwise the GIF will be interlaced.

sFileName
String specifying the name of the file to write to. If sFileName is a zero length string, the result GIF image will be produces as SAFEARRAY return value. You can use this for generation of images with ASP and sending them to client instead of writing to file.

nXStart
Specifies the x-coordinate of the first base corner of the bounding rectangle

nYStart
Specifies the y-coordinate of the first base corner of the bounding rectangle

nXEnd
Specifies the x-coordinate of the second base corner of the bounding rectangle

nYEnd
Specifies the y-coordinate of the second base corner of the bounding rectangle

Return Value

This method returns binary GIF image, if sFileName parameter is zero length string.

Remarks

For generation of images with ASP and sending them to client use BinaryWrite method of Response object.