DIMcImageEvents_BeforeNewEventHandler Delegate

Event fired before a new image is created by McImages.Add.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Public Delegate Sub DIMcImageEvents_BeforeNewEventHandler ( 
	Name As String,
	Width As Integer,
	Height As Integer,
	FrameCount As Integer,
	ImageType As Object,
	CreationFlags As Integer,
	<OutAttribute> ByRef Image As McImage,
	<OutAttribute> ByRef bCancel As Boolean
)

Parameters

Name
Type: SystemString
Name of the new image.
Width
Type: SystemInt32
Width in pixels. All frames share the same width.
Height
Type: SystemInt32
Height in pixels. All frames share the same height.
FrameCount
Type: SystemInt32
Number of initial frames.
ImageType
Type: SystemObject
This can be an instance of an McImageType interface or it can be a numeric "QuickType" (See mcImageQuickTypes).
CreationFlags
Type: SystemInt32
See mcImageCreateFlags for the list of supported flags.
Image
Type: MediaCy.IQL.EngineMcImage
Not used unless bCancel is set True, in which case this is the return value from the McImages.Add method.
bCancel
Type: SystemBoolean
If assigned True by the event handler, then the Image returned by the event handler is used as the return value for the McImages.Add method.
Remarks
This event is NOT fired when an image is opened from file. In that case the BeforeOpen event is fired instead.
See Also