Platforms to show: All Mac Windows Linux Cross-Platform
PictureToPNGStringMBS(pic as picture, gamma as single = 0.0) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the picture has no mask, no alpha channel is written to the file.
Returns "" on any error.
The gamma parameter defines what gamma correction is applied:
positive value: use the value as the gamma correction
zero: use default value (or value saved in file itself)
negative value: do not correct gamma
See also:
- 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
Some examples using this global method:
- /DynaPDF/PDF with picture
- /GraphicsMagick/GraphicsMagick/Console Text Drawing/Build Letter Database
- /Images/PNG/PNG Test
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Main/Picture Benchmark
- /Picture/Picture To String
Some FAQ entries about this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | PNG | MBS Images Plugin | 8.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If the picture has no mask, no alpha channel is written to the file.
Colors must be an array with 256 values defining the palette.
Returns true on success and false on failure.
The gamma parameter defines what gamma correction is applied:
positive value: use the value as the gamma correction
zero: use default value (or value saved in file itself)
negative value: do not correct gamma
If Interlace is true the Adam7 interlacing is used.
FilterType specifies the filter:
const PNG_NO_FILTERS | = 0 |
const PNG_FILTER_NONE | = 8 |
const PNG_FILTER_SUB | = 16 |
const PNG_FILTER_UP | = 32 |
const PNG_FILTER_AVG | = 64 |
const PNG_FILTER_PAETH | = 128 |
const PNG_FILTER_ALL | = 248 |
See also:
- PictureToPNGStringMBS(pic as picture, gamma as single = 0.0) 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
Some examples using this global method:
- /DynaPDF/PDF with picture
- /GraphicsMagick/GraphicsMagick/Console Text Drawing/Build Letter Database
- /Images/PNG/PNG Test
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Main/Picture Benchmark
- /Picture/Picture To String
Some FAQ entries about this method:
PictureToPNGStringMBS(pic as picture, mask as picture, gamma as single = 0.0) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns "" on any error.
It uses the mask passed. If nil, no alpha channel is written to the file.
The mask from the picture is ignored.
The gamma parameter defines what gamma correction is applied:
positive value: use the value as the gamma correction
zero: use default value (or value saved in file itself)
negative value: do not correct gamma
See also:
- 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, Interlace as Boolean, FilterType as Integer) as string
Some examples using this global method:
- /DynaPDF/PDF with picture
- /GraphicsMagick/GraphicsMagick/Console Text Drawing/Build Letter Database
- /Images/PNG/PNG Test
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Main/Picture Benchmark
- /Picture/Picture To String
Some FAQ entries about this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns "" on any error.
It uses the mask passed. If nil, no alpha channel is written to the file.
The mask from the picture is ignored.
The gamma parameter defines what gamma correction is applied:
positive value: use the value as the gamma correction
zero: use default value (or value saved in file itself)
negative value: do not correct gamma
If Interlace is true the Adam7 interlacing is used.
FilterType specifies the filter:
const PNG_NO_FILTERS | = 0 |
const PNG_FILTER_NONE | = 8 |
const PNG_FILTER_SUB | = 16 |
const PNG_FILTER_UP | = 32 |
const PNG_FILTER_AVG | = 64 |
const PNG_FILTER_PAETH | = 128 |
const PNG_FILTER_ALL | = 248 |
See also:
- 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
Some examples using this global method:
- /DynaPDF/PDF with picture
- /GraphicsMagick/GraphicsMagick/Console Text Drawing/Build Letter Database
- /Images/PNG/PNG Test
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Main/Picture Benchmark
- /Picture/Picture To String
Some FAQ entries about this method:
Blog Entries
The items on this page are in the following plugins: MBS Images Plugin.