Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

QTPictureMovieTrackMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class QuickTime MBS QuickTime Plugin 3.4 Yes Yes No No No
Function: A class to add pictures to a movie track.
Example:
dim f as FolderItem
dim p as Picture
dim i as Integer
dim e as EditableMovie
dim q as QTPictureMovieTrackMBS

p=NewPicture(320,240,32)
f=GetFolderItem("QTPictureMovieTrackMBS.mov")
e=f.CreateMovie
q=new QTPictureMovieTrackMBS
// "jpeg", "rle ", etc.
'q.CompressionCodec="mjpa"
q.FrameDuration=0.1

if q.CreateTrack(e,320,240) then

for i=0 to 255
p.Graphics.ForeColor=rgb(i,0,255-i)
p.Graphics.FillRect 0,0,320,240

q.AddPicture p

if q.Lasterror<>0 then
MsgBox str(q.Lasterror)+" addpicture"
end if
next
q.CloseTrack
else
MsgBox str(q.Lasterror)
end if
This item is deprecated and should no longer be used.
Notes: Please move to AVFoundation with AVAssetWriterMBS and AVAssetWriterInputPixelBufferAdaptorMBS classes.

Feedback, Comments & Corrections

Gamma Modes

Constant Value Description
kGamma18 &h0001CCCC Gamma 1.8 (Mac)
kGamma22 &h00023333 Gamma 2.2 (PC)

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS QuickTime Plugin.


QTMusicSampleDescriptionMBS   -   QTPrerollMBS




Links
MBS Xojo PDF Plugins