Platforms to show: All Mac Windows Linux Cross-Platform

PNGReaderMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class PNG MBS Images Plugin 9.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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 using this class:

Blog Entries

Xojo Developer Magazine

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

PNGpictureMBS   -   PNGWriterMBS

The biggest plugin in space...

MBS Xojo PDF Plugins

Start Chat