C# Класс Recurity.Swf.TagHandler.DefineBitsJPEG3

This tag defines a bitmap character with JPEG compression. This tag extends

DefineBitsJPEG2, adding alpha channel (opacity) data. Opacity/transparency information is

not a standard feature in JPEG images, so the alpha channel information is encoded separately

from the JPEG data, and compressed using the ZLIB standard for compression. The data

format used by the ZLIB library is described by Request for Comments (RFCs) documents

1950 to 1952.

The data in this tag begins with the JPEG SOI marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format, Swf files could contain an

erroneous header of 0xFF, 0xD9, 0xFF, 0xD8 before the JPEG SOI marker.

In addition to specifying JPEG data, DefineBitsJPEG2 can also contain PNG image data and

non-animated GIF89a image data.

If ImageData begins with the eight bytes 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A, the

ImageData contains PNG data.

If ImageData begins with the six bytes 0x47 0x49 0x46 0x38 0x39 0x61, the ImageData

contains GIF89a data.

If ImageData contains PNG or GIF89a data, the optional BitmapAlphaData is not

supported.

The minimum file format version for this tag is Swf 3. The minimum file format version for

embedding PNG of GIF89a data is Swf 8

Наследование: AbstractTagHandler, ISwfCharacter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DefineBitsJPEG3 ( byte InitialVersion ) : System

ToString ( ) : string

Converts the value of this instance to a System.String.

Verify ( ) : bool

Verifies this object and its components for documentation compliance.

Write ( System output ) : void

Writes a tag back to a stream.

Защищенные методы

Метод Описание
Parse ( ) : void

Приватные методы

Метод Описание
VerifyGIF98a ( ) : bool

Verifies this object and its component for documentation compliance.

VerifyJPEG ( ) : bool

Verifies this object and its component for documentation compliance.

VerifyPNG ( ) : bool

Verifies this object and its component for documentation compliance.

Описание методов

DefineBitsJPEG3() публичный Метод

public DefineBitsJPEG3 ( byte InitialVersion ) : System
InitialVersion byte The initial version of the Swf file
Результат System

Parse() защищенный Метод

protected Parse ( ) : void
Результат void

ToString() публичный Метод

Converts the value of this instance to a System.String.
public ToString ( ) : string
Результат string

Verify() публичный Метод

Verifies this object and its components for documentation compliance.
public Verify ( ) : bool
Результат bool

Write() публичный Метод

Writes a tag back to a stream.
public Write ( System output ) : void
output System The stream to write to.
Результат void