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

JPEGMovieMBS class

class, JPEG, MBS JPEG Plugin (JPEGMovie), class JPEGMovieMBS,
Plugin version: 17.2, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

Function: A class to write a movie with JPEGs.
// get a picture
dim p as Picture = LogoMBS(500)

// start movie building
dim m as new JPEGMovieMBS

m.Width = 500
m.Height = 500
m.SecondsPerFrame = 0.5

// add frames where we count up
for i as integer = 1 to 20
dim c as new Picture(500, 500)
dim g as Graphics = c.Graphics
g.ForeColor = &c000000
g.TextSize = 50
g.DrawPicture p, 0, 0
g.DrawString str(i), 20, 50

dim j as string = c.GetData(c.FormatJPEG)
m.AddFrame j


// generate movie
dim MovieData as string = m.BuildMovie

// and write to file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim b as BinaryStream = BinaryStream.Create(f, true)
b.Write MovieData
This is a self written class to create a QuickTime Movie with one video track using JPEG images.
You can use this to quickly write a slideshow video if needed.

Does play in Quicktime player and VLC, but not Windows Media Player.

This class has no sub classes.

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

JPEGImporterMBS   -   JPEGTransformationMBS

MBS Xojo PDF Plugins