Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
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
PNG
Classes and functions for handling PNG picture files.
- PictureToPNGStringMBS(pic as picture, gamma as single = 0.0) as string
- PictureToPNGStringMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as string
- PictureToPNGStringMBS(pic as picture, mask as picture, gamma as single = 0.0) as string
- PictureToPNGStringMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as string
- PNGStringToPictureMBS(data as string, gamma as single = 0.0, AllowDamaged as boolean = false) as picture
- PNGStringToPNGPictureMBS(data as string, gamma as single = 0.0, AllowDamaged as boolean = false) as PNGPictureMBS
- class PNGpictureMBS
- method CombinePictureWithMask as picture
- shared method PNGLibVersion as string
- property height as Integer
- property mask as picture
- property pict as picture
- property width as Integer
- const kDefaultGamma = 0
- class PNGReaderMBS
- 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 OpenSpecialData(data as string) as boolean
- shared method PNGLibVersion as string
- 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
- property AllowDamaged as Boolean
- property BitDepth as Integer
- property ColorType as Integer
- property Height as Integer
- property InterlaceType as Integer
- property Interlacing as Integer
- property Mask as Picture
- property Pict as Picture
- property SourceData as String
- property SourceFile as FolderItem
- property SwapRB as Boolean
- property Width as Integer
- event Error(msg as string)
- event Warning(msg as string)
- class PNGWriterMBS
- method CloseDestination
- method Finish as string
- method OpenWriteDestination(file as folderitem) as boolean
- shared method PNGLibVersion as string
- method SetAlphaData(alphas() as Integer, colors() as color) as boolean
- method SetAlphas as boolean
- method SetGamma(gamma as Double = 0.0) as boolean
- method SetGrayPicture(pict as picture, mask as picture = nil) as boolean
- method SetHeader(Interlace as boolean = false, Filter as Integer = -1, Compression as Integer = -1) as boolean
- method SetICCProfile(name as string, CompressionType as Integer, Profile as string) as boolean
- method SetPalette as boolean
- method SetPaletteData(colors() as color) as boolean
- method SetPalettePicture(pict as picture) as boolean
- method SetResolution(ResolutionHorizontal as Integer, ResolutionVertical as Integer, Unit as Integer) as boolean
- method SetRGBPicture(pict as picture, mask as picture = nil) as boolean
- method SetRows(rows() as memoryblock) as boolean
- method SetsRGB(intent as Integer) as boolean
- method WriteEnd as boolean
- method WriteInfo as boolean
- method WriteRow(row as memoryblock)
- method WriteRows as boolean
- property bpc as Integer
- property Height as Integer
- property Rowbytes as Integer
- property Type as Integer
- property Width as Integer
- event Error(msg as string)
- event Warning(msg as string)
- const ResolutionDPI = 2
- const ResolutionMeter = 1
- const ResolutionUnknown = 0
- const TypeGray = 0
- const TypeGrayA = 4
- const TypePalette = 1
- const TypeRGB = 2
- const TypeRGBA = 6
The items on this page are in the following plugins: MBS Images Plugin.
Links
MBS Xojo tutorial videos