JPEGMovieMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

JPEGMovieMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class JPEG MBS Images Plugin 17.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class to write a movie with JPEGs.
Example
// 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

next

// 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.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes


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


JPEGImporterMBS   -   JPEGTransformationMBS


💬 Ask a question or report a problem