C# Class 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

Inheritance: AbstractTagHandler, ISwfCharacter
Exibir arquivo Open project: rtezli/Blitzableiter Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Parse ( ) : void

Private Methods

Method Description
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.

Method Details

DefineBitsJPEG3() public method

public DefineBitsJPEG3 ( byte InitialVersion ) : System
InitialVersion byte The initial version of the Swf file
return System

Parse() protected method

protected Parse ( ) : void
return void

ToString() public method

Converts the value of this instance to a System.String.
public ToString ( ) : string
return string

Verify() public method

Verifies this object and its components for documentation compliance.
public Verify ( ) : bool
return bool

Write() public method

Writes a tag back to a stream.
public Write ( System output ) : void
output System The stream to write to.
return void