![]() |
Creates a new editable multiframe gif image based from a GdPicture Image.
public int GifCreateMultiFrameFromGdPictureImage( int ImageID );
Public Function GifCreateMultiFrameFromGdPictureImage( ByVal ImageID As Integer ) As Integer
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. The image from witch the new multiframe gif image will be created. |
0: The image could not created. Use the GetStat() function to determine the reason this function failed.
Non-zero: GdPicture Image Identifier. The created editable multiframe gif image.
If success, set the created image as a GdPicture image.
Supported formats are RAW, PICT, BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, PFM, RPPM, RPGM, RPBM, PCX, XPM, XBM, WBMP, TGA, SGI, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.
apply negative effect on all frames of an animated gif image
Dim i As Integer Dim GifImageID As Integer Dim FrameCount As Integer GifImageID = oGdPictureImaging.GifCreateMultiFrameFromFile("input.gif") FrameCount = oGdPictureImaging.GifGetFrameCount(GifImageID) For i = 1 To FrameCount oGdPictureImaging.GifSelectFrame(GifImageID, i) oGdPictureImaging.FxNegative(GifImageID) Next i oGdPictureImaging.GifSaveMultiFrameToFile(GifImageID, "output.gif") oGdPictureImaging.ReleaseGdPictureImage(GifImageID)
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|