GraphicsFormats Xojo plugin

RawGIFImporter Class

A class to Import GIF and GIF animations picture into RawBitmap. The class can either import from file or string.

Object
   RawGIFImporter

class RawGIFImporter implements

IRawBitmapReader

IRawBitmapReaderV2

Properties

CommentComment from the comment field in the Gif file if any.
DelayReturns the Delay in milliseconds of the first frame.
ErrorMessageError message for last error that occurred.
IsAnimatedReturns true if the first frame of the Gif image is marked as animated.
LastErrorReturns enum error code for last error that occurred.

Methods

FileExtensionsReturns array of file extensions which this image format can use.
GetLastErrorCodeSame as the LastError property but this one returns it as Integer to full-fill the standard interface.
InternetMediaTypesReturns array of internet media types which this image format can use.
OpenAllFramesFromFileOpens all frames of a GIF Image from a file.
OpenAllFramesFromStringOpens all frames of a GIF Image from a string.
OpenFromFileOpens a GIF Image from a file, returning the first frame only if it is animated GIF.
OpenFromStringOpens a GIF Image from a String, returning the first frame only if it is animated GIF.
ReadHeaderReads header for the GIF image from a string.
ReadHeaderReads header for the GIF image from a file.
UTIReturns UTI identifier for the file format of this class.
UTIConformsToReturns UTI conforms to identifier for the file format of this class.
UTIDescriptionReturns UTI description for the file format of this class.

Enumerations

ErrorValuesEnum representing error codes which this class can return.

Constants

Version = 10.02

This class uses GIFLIB which is 3rd party software.

License for GIFLIB:


The GIFLIB distribution is Copyright (c) 1997 Eric S. Raymond

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS