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

JPEGMovieMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class JPEG MBS JPEG Plugin 17.2 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

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

JPEGImporterMBS   -   JPEGTransformationMBS

MBS Xojo PDF Plugins