Gifscaler Library Overview

This document introduces you to the Gifscaler library functionality.

Purpose

The GifScaler functionality provides scaling and colour quantization of bitmaps as asynchronous operations.

Gifscaler Library Details

You must obtain necessary binaries in the form of DLL file to implement the Gifscaler function.

DLL LIB Short Description

gifscaler.dll

gifscaler.lib

These files are used for implementing Gifscaler operation.

Architectural Relationship

Gifscaler function plays an important role in Imaging Frameworks to provide bitmaps suitable for gif encoding.

Description

Gifscaler is used to provide bitmaps suitable for gif encoding. The target bitmap is a 256 colours bitmap using a custom palette created by the GifScaler.dll. The transparency information is provided in the form of a mask bitmap. If transparency information is present the output palette contains 255 colours, the remaining palette entry is used for the transparent pixels.

Key Gifscaler Classes

The key class is:

  • CGifScaler Provides scaling and colour quantization of bitmaps as asynchronous operations. It provides the client interface functionality to the GifScaler.dll.

Using Gifscaler

The Gifscaler functionality is used for the following:

  • To provide bitmaps suitable for gif encoding.

  • To provide scaling of bitmaps as asynchronous operations.

  • To provide colour quantization of bitmaps as asynchronous operations.

  • To use fast colour quantizer for the small bitmaps.

  • To provide no memory allocation during the colour quantization process and therefore no RunError() method is required.

Related concepts