MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

QTPictureMovieTrackMBS class

class, QuickTime, MBS QuickTime Plugin (QuickTime), class QTPictureMovieTrackMBS,
Plugin version: 3.4, Mac: Yes, Win: Yes, Linux: No, Console & Web: No, Feedback.

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.

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 Plugins