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 |
Use this class to read PNG files row by row as memoryblock.
Based on LibPNG.
- 2 events
- 28 properties
- property AllowDamaged as Boolean
- property BitDepth as Integer
- property ChunkCacheMax as UInt32
- property ChunkMallocMax as UInt64
- property ColorType as Integer
- property CompressionBufferSize as UInt64
- property ExpandGrayToRGB as Boolean
- property HasTransparency as Boolean
- property Height as Integer
- property InterlaceType as Integer
- property Interlacing as Integer
- property InvertAlpha as Boolean
- property Mask as Picture
- property OriginalColorType as Integer
- property Pict as Picture
- property RGBToGray as Boolean
- property RGBToGrayErrorAction as Integer
- property RGBToGrayGreen as Double
- property RGBToGrayRed as Double
- property SourceData as String
- property SourceFile as FolderItem
- property SourcePath as String
- property StripAlpha as Boolean
- property SwapRB as Boolean
- property UseFiller as Boolean
- property UserHeightMaximum as UInt32
- property UserWidthMaximum as UInt32
- property Width as Integer
- 17 methods
- method ApplyOptions(gamma as double = 0.0, ScreenGamma as double = -1.0) as boolean
- method CombinePictureWithMask as picture
- method Open(file as folderitem, data as string) as boolean
- method OpenData(data as string) as boolean
- method OpenFile(file as folderitem) as boolean
- method OpenFile(Path as String) as boolean
- method ReadEXIF(byref exif as string) as boolean
- method ReadHeader as Boolean
- method ReadICCProfile(byref name as string, byref compression as Integer, byref profile as string) as boolean
- method ReadPicture as boolean
- method ReadRow as memoryblock
- method ReadRow(mem as memoryblock) as boolean
- method ReadRowAlphaOnly(mem as memoryblock) as boolean
- method ReadRowMaskOnly(mem as memoryblock) as boolean
- method ReadsRGBTag(byref file_srgb_intent as Integer) as boolean
- method RowBytes as Integer
- shared method PNGLibVersion as string
This class has no sub classes.
Some examples using this class:
- /Images/JPEG/PNG to JPEG with ICC Profile
- /Images/LargePicture/PictureMBS display huge picture
- /Images/LargePicture/PNG Load and Save
- /Images/PNG/Load iPhone PNG/Load iPhone PNG
- /Images/PNG/PNG Load To MemoryBlocks
- /Images/PNG/png with profile
Blog Entries
- MBS Xojo Plugins, version 20.4pr3
- MonkeyBread Software Releases the MBS Xojo Plugins in version 20.2
- MBS Xojo Plugins, version 20.2pr7
- MBS Xojo Plugins, version 20.2pr4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.5
- MBS Xojo Plugins, version 19.5pr8
- MBS Xojo Plugins in version 19.0
- MBS Plugins 11.1 Release notes
- MBS Plugins 10.3 Release Notes
- MBS REALbasic plug-ins version 9.4
Xojo Developer Magazine
Release notes
- Version 20.4
- Fixed bug in error handling for ApplyOptions in PNGReaderMBS class.
- Version 20.2
- Added CompressionBufferSize, UserWidthMaximum, UserHeightMaximum, ChunkCacheMax, and ChunkMallocMax properties to PNGReaderMBS class.
- Deprecated OpenSpecialData method in PNGReaderMBS class.
- Version 19.5
- Added ExpandGrayToRGB and StripAlpha properties to PNGReaderMBS class.
- Added InvertAlpha property to PNGReaderMBS class.
- Added OriginalColorType property to PNGReaderMBS class.
- Added path variant for OpenFile method and new SourcePath property to PNGReaderMBS class.
- Added RGBToGray, RGBToGrayErrorAction, RGBToGrayGreen, RGBToGrayRed properties to PNGReaderMBS class.
- Added UseFiller property to PNGReaderMBS class.
- Version 19.2
- Change PNGReaderMBS to skip unknown blocks in PNG file.
- Version 19.0
- Added ReadEXIF for PNGReaderMBS class.
The items on this page are in the following plugins: MBS Images Plugin.