Platforms to show: All Mac Windows Linux Cross-Platform

PNGReaderMBS.AllowDamaged as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 11.3 Yes Yes Yes All
Function: Whether to return picture for files with damaged content.
Notes:
e.g. a half downloaded PNG file can still be processed and may give you a preview for the file.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.BitDepth as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The bit depth of the PNG file.
Notes:
The original value from file headers, not updated by ApplyOptions, even if we convert e.g. 1 bit to gray for you.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.ChunkCacheMax as UInt32
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 20.2 Yes Yes Yes All
Function: The maximum cache size for caching chunks.
Notes:
The PNG specification sets no limit on the number of ancillary chunks allowed in a PNG datastream. By default, libpng imposes a limit of a total of 1000 sPLT, tEXt, iTXt, zTXt, and unknown chunks to be stored.
You can change the limit on the total number of such hunks that will be stored, with this property, where &h7fffffff means unlimited.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.ChunkMallocMax as UInt64
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 20.2 Yes Yes Yes All
Function: The maximum allocation size for one chunk.
Example:
dim png as new PNGReaderMBS
png.chunkMallocMax=32 * 1024 * 1024
Notes:
Libpng imposes a limit of 8 Megabytes (8,000,000 bytes) on the amount of memory that a compressed chunk other than IDAT can occupy, when decompressed.
You can query or change this limit with with this property.
Any chunks that would cause either of these limits to be exceeded will be ignored.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.ColorType as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The color type of the PNG file.
Notes:
The value is a combination of this constants:
PNG_COLOR_MASK_PALETTE= 1
PNG_COLOR_MASK_COLOR= 2
PNG_COLOR_MASK_ALPHA= 4

The PNG library will convert on reading every row into 32bit RGBA, so don't worry about this.

The OriginalColorType property is the color type of the file. ColorType property reports what ApplyOptions changed it to, so you know what ReadRow will put in the MemoryBlock.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.CompressionBufferSize as UInt64
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 20.2 Yes Yes Yes All
Function: The zlib compression buffer size.
Notes:
You can change the zlib compression buffer size to be used while reading compressed data with this property where the default size is 8192 bytes. Note that the buffer size is changed immediately and the buffer is reallocated immediately, instead of setting a flag to be acted upon later.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.ExpandGrayToRGB as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether grayscale images are expanded to RGB.
Notes:
Set before ApplyOptions if you need this option.
Default is true.

Shall set transformations such that the grayscale image is converted to 24-bit RGB.

see png_set_gray_to_rgb function in libpng documentation.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.HasTransparency as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether a transparency block is included for palette images (tRNS).
Notes:
Set by ReadHeader or ApplyOptions.
(Read only property)

Feedback, Comments & Corrections

PNGReaderMBS.Height as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The height of the picture in pixels.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.InterlaceType as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The interlace setting.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.Interlacing as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.1 Yes Yes Yes All
Function: Whether the png file is interlaced.
Notes:
Value is 1 if not interlaced and 7 if interlaced.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.InvertAlpha as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether alpha values should be inverted.
Notes:
Set before ApplyOptions if you need this option.
Default is false.

see png_set_invert_alpha function in libpng documentation.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.Mask as Picture
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The mask of the picture.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.OriginalColorType as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: The original color type of the PNG file.
Notes:
The value is a combination of this constants:
PNG_COLOR_MASK_PALETTE= 1
PNG_COLOR_MASK_COLOR= 2
PNG_COLOR_MASK_ALPHA= 4

The PNG library will convert on reading every row into 32bit RGBA, so don't worry about this.

The OriginalColorType property is the color type of the file. ColorType property reports what ApplyOptions changed it to, so you know what ReadRow will put in the MemoryBlock.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.Pict as Picture
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The picture read.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.RGBToGray as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether to convert RGB to grayscale.
Example:
dim png as PNGReaderMBS

// ask for gray only
png.RGBToGray = True

// avoid extra filler bytes for missing alpha channel
png.UseFiller = false
Notes:
Set before ApplyOptions if you need this option.
Default is false.

see png_set_rgb_to_gray function in libpng documentation.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.RGBToGrayErrorAction as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Error handling option for Reduce RGB to grayscale.
Notes:
Can be 1 for none, 2 for warn or 3 for error.
Default is 1.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.RGBToGrayGreen as Double
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: The green coefficient to use for RGB to Gray conversion.
Notes:
Default is -1 for default coefficients.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.RGBToGrayRed as Double
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: The green coefficient to use for RGB to Gray conversion.
Notes:
Default is -1 for default coefficients.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.SourceData as String
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 10.3 Yes Yes Yes All
Function: The source data used in Open functions.
Example:
dim p as PNGReaderMBS // your reader

// write data to file
dim fo as FolderItem = SpecialFolder.Desktop.Child("mbsout.png")
dim bo as BinaryStream = fo.CreateBinaryFile("") // BinaryStream.Create(fo,true) in newer RB Versions

bo.Write p.SourceData
Notes:
If you used OpenSpecialData, the data here is the PNG without the Apple modifications, but still with swapped colors.
This property is set by the OpenSpecialData, Open and OpenData functions.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.SourceFile as FolderItem
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 10.3 Yes Yes Yes All
Function: The folderitem passed to the Open functions.
Notes:
This property is set by the Open and OpenFile functions.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.SourcePath as String
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: The source file path.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.StripAlpha as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether to strip alpha.
Notes:
Set before ApplyOptions if you need this option.
Default is false.

see png_set_strip_alpha function in libpng documentation.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.SwapRB as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 10.3 Yes Yes Yes All
Function: Whether to swap red and blue channels.
Example:
dim p as new PNGReaderMBS
p.SwapRB = true
Notes:
The PNG files for the iPhone have swapped channels so the iPhone does not need to swap them for display. One of the tricks Apple uses for making the iPhone faster.
This flag is set to true by OpenSpecialData.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.UseFiller as Boolean
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 19.5 Yes Yes Yes All
Function: Whether filler byte is used for RGB.
Notes:
Set by ApplyOptions if needed.
Defines whether RGB is extended to 4 bytes with an extra filler byte if needed.

see png_set_filler function in libpng documentation.
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.UserHeightMaximum as UInt32
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 20.2 Yes Yes Yes All
Function: The height maximum.
Notes:
The PNG specification allows the width and height of an image to be as large as 2^31-1 (0x7fffffff), or about 2.147 billion rows and columns.
For safety, libpng imposes a default limit of 1 million rows and columns.
Larger images will be rejected immediately with a png_error() call. If you wish to change these limits, you can use this property to set your own limits (libpng may reject some very wide images anyway because of potential buffer overflow conditions).
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.UserWidthMaximum as UInt32
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 20.2 Yes Yes Yes All
Function: The width maximum.
Notes:
The PNG specification allows the width and height of an image to be as large as 2^31-1 (0x7fffffff), or about 2.147 billion rows and columns.
For safety, libpng imposes a default limit of 1 million rows and columns.
Larger images will be rejected immediately with a png_error() call. If you wish to change these limits, you can use this property to set your own limits (libpng may reject some very wide images anyway because of potential buffer overflow conditions).
(Read and Write property)

Feedback, Comments & Corrections

PNGReaderMBS.Width as Integer
Type Topic Plugin Version macOS Windows Linux Targets
property PNG MBS Images Plugin 9.0 Yes Yes Yes All
Function: The width of the picture in pixels.
Notes: (Read and Write property)

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins