Click or drag to resize

IMcStreamReadFrames Method

This method allows the client to read an array of frames from a sequence, and place them in particular frames of an existing image. For example, the client may wish to read frames 6,10, and 12 of a sequence file, and place them in Frame locations 3,9,and 11 of the image, respectively. The two SAFEARRAY's are matched descriptor to descriptor, for example, the first array member of the stream_range array will be placed into the first array member of the image_range.

Namespace:  MediaCy.IQL.IO
Assembly:  MediaCy.IQL.IO (in MediaCy.IQL.IO.dll) Version: 10.0.6912.0
Syntax
VB
Sub ReadFrames ( 
	image_range As Object,
	stream_range As Object,
	Flags As mclfLoadFlags,
	<OutAttribute> ByRef Destination As McImage
)

Parameters

image_range
Type: SystemObject
stream_range
Type: SystemObject
Flags
Type: MediaCy.IQL.IOmclfLoadFlags
Destination
Type: MediaCy.IQL.EngineMcImage
Examples
VB
Dim image As McImage
Dim stream As McStream
Dim imrange(3) As Long
Set stream = ThisApplication.Images.File
stream.Open "d:\images\movies\big_shock.avi"
stream.ReadFrames imrange, , mclfNoFlags, image
stream.Close
stream.Open "d:\images\jpeg\milan.jpg"
imrange(0) = 3
stream.ReadFrames imrange, , , image
stream.Close
stream.Open "d:\images\jpeg\brithane.jpg"
imrange(0) = 4
stream.ReadFrames imrange, , , image
stream.Close
stream.Open "d:\images\jpeg\c.jpg"
imrange(0) = 5
stream.ReadFrames imrange, , , image
stream.Close
stream.Open "d:\images\jpeg\nyc_ash.jpg"
imrange(0) = 6
stream.ReadFrames imrange, , , image
stream.Close
See Also