Xojo Conferences
XDCMay2019MiamiUSA

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.
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
Notes:
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:

Blog Entries


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


PNGpictureMBS   -   PNGWriterMBS




Links
MBS Xojo PDF Plugins