PNGReaderMBS 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

PNGReaderMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class PNG MBS Images Plugin 9.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for reading PNG files.
Example
dim Current as PictureMBS // global
dim f as FolderItem

f=GetopenFolderItem(FileTypes.Png)

if f<>Nil then
Current=nil

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

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

end if
end if
end if

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

Based on LibPNG.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


PNGpictureMBS   -   PNGWriterMBS


💬 Ask a question or report a problem