GraphicsFormats Xojo plugin

RawGIFImporter Class (console safe)

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

Comment (console safe) Comment from the comment field in the Gif file if any.
Delay (console safe) Returns the Delay in milliseconds of the first frame.
ErrorMessage (console safe) Error message for last error that occurred.
IsAnimated (console safe) Returns true if the first frame of the Gif image is marked as animated.
LastError (console safe) Returns enum error code for last error that occurred.

Methods

FileExtensions (console safe) Returns array of file extensions which this image format can use.
GetLastErrorCode (console safe) Same as the LastError property but this one returns it as Integer to full-fill the standard interface.
InternetMediaTypes (console safe) Returns array of internet media types which this image format can use.
OpenAllFramesFromFile (console safe) Opens all frames of a GIF Image from a file.
OpenAllFramesFromString (console safe) Opens all frames of a GIF Image from a string.
OpenFromFile (console safe) Opens a GIF Image from a file, returning the first frame only if it is animated GIF.
OpenFromString (console safe) Opens a GIF Image from a String, returning the first frame only if it is animated GIF.
ReadHeader (console safe) Reads header for the GIF image from a string.
ReadHeader (console safe) Reads header for the GIF image from a file.
UTI (console safe) Returns UTI identifier for the file format of this class.
UTIConformsTo (console safe) Returns UTI conforms to identifier for the file format of this class.
UTIDescription (console safe) Returns UTI description for the file format of this class.

Enumerations

ErrorValuesEnum representing error codes which this class can return.

Constants

Version = 12.0

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