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

PNGReaderMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class PNG MBS Images Plugin 9.0 Yes Yes Yes Yes No
Function: The class for reading PNG files.
dim Current as PictureMBS // global
dim f as FolderItem


if f<>Nil then

dim p as new PNGReaderMBS

if p.OpenFile(f) then
if p.ApplyOptions(0) then

Current=new PictureMBS(p.Width,p.Height,PictureMBS.ImageFormatRGB)

dim i,c as Integer

for i=0 to c
Current.RowInFormat(i, PictureMBS.ImageFormatRGBA)=p.ReadRow

end if
end if
end if
Use this class to read PNG files row by row as memoryblock.

Based on LibPNG.

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 Images Plugin.

PNGpictureMBS   -   PNGWriterMBS

MBS FileMaker blog