C# Class SwfDotNet.IO.Utils.ImageFactory

ImageFactory provides methods to get the adapted tag object from an image.
Swf binary format has some different tags to include a picture in animation: DefineBitJpeg2 to include jpeg, DefineBitJpeg3 to include transparent jpeg, DefineBitsTag, DefineBitsLossLessTag to include bitmap and DefineBitsLossLessTag to include transparent bitmap. This class provides the way to automatically create the good tag object from picture files.
Datei anzeigen Open project: bladecoding/SwfExport

Public Methods

Method Description
GetPictureBitsTag ( Image image, ushort characterId ) : BaseTag

Gets the picture bits tag.

GetPictureTag ( Image image, ushort characterId ) : BaseTag

Gets the picture tag.

Method Details

GetPictureBitsTag() public static method

Gets the picture bits tag.
public static GetPictureBitsTag ( Image image, ushort characterId ) : BaseTag
image Image Image.
characterId ushort Character id.
return SwfDotNet.IO.Tags.BaseTag

GetPictureTag() public static method

Gets the picture tag.
public static GetPictureTag ( Image image, ushort characterId ) : BaseTag
image Image Image.
characterId ushort Character id.
return SwfDotNet.IO.Tags.BaseTag