Click or drag to resize

IMcDibAccessGetSourceInfo Method

Returns information necessary to access source image data as a Dib bitmap.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function GetSourceInfo ( 
	<OutAttribute> ByRef plFrameCount As Integer,
	<OutAttribute> ByRef plChannelCount As Integer,
	<OutAttribute> ByRef plWidth As Integer,
	<OutAttribute> ByRef plHeight As Integer,
	<OutAttribute> ByRef ppimcimagetypeSource As McImageType,
	<OutAttribute> ByRef pFlags As mcDibAccessFlags
) As Object

Parameters

plFrameCount
Type: SystemInt32
On exit, set to the number of frames in the source. This sets the limit on the legal lFrame argument for the GetDibBytes and GetDibBytesEx methods.
plChannelCount
Type: SystemInt32
On exit, set to the number of channels in the source. This sets the limit on the legal lChannelToProcess argument for the GetDibBytes and GetDibBytesEx methods.
plWidth
Type: SystemInt32
On exit, set to the width of the source frames. This sets the horizontal clipping limit.
plHeight
Type: SystemInt32
On exit, set to the height of the source frames. This sets the vertical clipping limit.
ppimcimagetypeSource
Type: MediaCy.IQL.EngineMcImageType
If non NULL, will be filled with a pointer to the backing Source's McImageType. This type information allows the caller to determine an appropriate argument for the SetDisplayLut method. Do not modify the properties of the returned object, as it may be the actual internal object maintained by the source; also remember to release your reference on this object when you release your reference on this McDibAccess instance. If the pFlags mcdafSourceHasTypeInfo bit is not set on return, then this object will be returned as Nothing.
pFlags
Type: MediaCy.IQL.EnginemcDibAccessFlags
On entry, if the mcdafReleaseSourceData bit is set, then any locked source image data is released. In this case, no other information is returned; all other arguments may be NULL. Otherwise on exit bits will be set indicating if the source is a native Dib and if the source is a McImage. The flags should be examined to determine the type of object, if any, that is returned by this method.

Return Value

Type: Object
An object (IDispatch*), which will be a McImage instance (if the mcdafSourceIsMcImage bit is set in the returned pFlags argument), a McLookupTables instance (if the mcdafSourceHasLookupTables bit is set in the returned pFlags argument) or Nothing.
See Also