|
Imports selected frames of a Flash movie. By default, only one
frame is imported. ActionScript 2 or below is supported.
ActionScript 3 is not supported.
|
Alpha Blending. PDF supports using different color spaces
for alpha blending. When there is a transparent object on a page,
the blending color space will be used. By default, it uses
DeviceCMYK. You will likely see some color shifts even for opaque
objects because colors are converted to the alpha blending color
space and then to DeviceRGB for display. The effect is more
noticeable for objects using component-wise alpha blending.
To use RGB as it is used in SWF for alpha blending, set the
default blending color space for the page to DeviceRGB:
doc.SetInfo(doc.Page, "/Group*/Type:Name", "Group");
doc.SetInfo(doc.Page, "/Group*/S:Name", "Transparency");
doc.SetInfo(doc.Page, "/Group*/CS:Name", "DeviceRGB");
|
You must specify a Doc
before the ProcessingObject
event of ProcessingSourceType.ImageFrame returns/is handled.
An exception will be thrown if the operation is not possible.
This may happen if the Flash movie is corrupt.
- This method generates events as
follows:
- Before the Flash engine advances, a ProcessingObject
event of ProcessingSourceType.MultiFrameImage is generated. If
ResetRegions is
true, BackgroundRegion and
ClipRegion are reset
to the frame bounds/stage size of the Flash movie when the event is
generated. The regions are set as if XRect.SetRect
is called with the X, Y, Width, and
Height
properties of the ProcessingInfo.
You can provide parameters in Parameters for initializing
the SWF machine before the first time a proper FrameNumber
is returned in this event.
- After a proper FrameNumber
is returned in a previous ProcessingObject
event of ProcessingSourceType.MultiFrameImage and the Flash engine
advances to the frame, a ProcessingObject
event of ProcessingSourceType.ImageFrame is generated. If ResetRegions is true,
BackgroundRegion and
ClipRegion are reset
to the frame bounds/stage size of the Flash movie when the event is
generated because the frame actions may have changed the stage
scale mode. You must specify a Doc before this event returns/is
handled. The frame is rendered on to Doc.Rect of the
current page using Doc.Transform.
- While rendering a frame, a ProcessingObject
event of ProcessingSourceType.Image is generated when an image is
imported.
- While rendering a frame, a ProcessingObject
event of ProcessingSourceType.ImageMask is generated when an image
used as a mask is imported.
Unless stated otherwise, a ProcessedObject
event corresponding to each ProcessingObject
event is generated.
Imported images are not compressed. You may wish to analyse and
compress these PixMap objects
by pre and post processing them during the ProcessingObject
and ProcessedObject
events.
|
|
|