This documentation is for the old version. Go to the latest Graphics Mill docs

SwfEncoderOptions Class

This class holds SWF encoder options.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public NotInheritable Class SwfEncoderOptions _
	Inherits EncoderOptions
public sealed class SwfEncoderOptions : EncoderOptions


This class enables to initialize both entire SWF file and separate frames settings. Usually you can use this class from Saving event handler to modify both global and frames settings. If you set global settings for the same file multiple times, only settings specified at the first time are used.

This table gives the explanation for all SWF settings:

Property Description
Compression (frame) Specifies a compression type for the SWF frame.
Delay (frame) Specifies a delay time for this frame.
DisposalMethod (frame) Specifies a disposal method for the frame (what to do with the screen when new frame is being displayed).
Quality (frame) Specifies a JPEG quality (used if compression type is Jpeg).
BackgroundColor (global) Specifies a background color for the SWF movie.
Width (global) Specifies a SWF movie width.
Height (global) Specifies a SWF movie height.

MediaFormat property of this class always returns value that equals to SwfFormat static field of the FormatManager class. Left and Top are used to specify offset of the frame relatively top left corner of the SWF movie.


The code sample below converts JPEG file into the SWF image frame.

Visual Basic
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\Mountain.jpg")

bitmap.Save("C:\Mountain.swf", _
    New Aurigma.GraphicsMill.Codecs.SwfEncoderOptions(30))

using (Aurigma.GraphicsMill.Bitmap bitmap = 
            new Aurigma.GraphicsMill.Bitmap(@"C:\Mountain.jpg"))
        new Aurigma.GraphicsMill.Codecs.SwfEncoderOptions(30));

Inheritance Hierarchy

L Aurigma.GraphicsMill.Codecs.EncoderOptions
L Aurigma.GraphicsMill.Codecs.SwfEncoderOptions

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

Object Model

See Also