Platforms to show: All Mac Windows Linux Cross-Platform
Back to FolderItem class.
FolderItem.SaveAsPNGMBS(pic as picture, gamma as single = 0.0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If pic has a mask, it is written to the file as alpha channel.
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
See also:
- SaveAsPNGMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single = 0.0) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
Some examples using this method:
- /Compression/Old ZipMBS class/zip images
- /Compression/Old ZipMBS class/zip images with offset
- /Compression/Old ZipMBS class/zip without compression
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Images/PNG/PNGOptimizer test
- /MacBase/NSImage Console
- /MacBase/NSImage Console with Mask
- /MacBase/NSImage GUI
- /MacBase/NSImage GUI with Mask
FolderItem.SaveAsPNGMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If pic has a mask, it is written to the file as alpha channel.
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:
- SaveAsPNGMBS(pic as picture, gamma as single = 0.0) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single = 0.0) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
Some examples using this method:
- /Compression/Old ZipMBS class/zip images
- /Compression/Old ZipMBS class/zip images with offset
- /Compression/Old ZipMBS class/zip without compression
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Images/PNG/PNGOptimizer test
- /MacBase/NSImage Console
- /MacBase/NSImage Console with Mask
- /MacBase/NSImage GUI
- /MacBase/NSImage GUI with Mask
FolderItem.SaveAsPNGMBS(pic as picture, mask as picture, gamma as single = 0.0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If mask is nil no alpha channel is written to the file.
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
See also:
- SaveAsPNGMBS(pic as picture, gamma as single = 0.0) as boolean
- SaveAsPNGMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
Some examples using this method:
- /Compression/Old ZipMBS class/zip images
- /Compression/Old ZipMBS class/zip images with offset
- /Compression/Old ZipMBS class/zip without compression
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Images/PNG/PNGOptimizer test
- /MacBase/NSImage Console
- /MacBase/NSImage Console with Mask
- /MacBase/NSImage GUI
- /MacBase/NSImage GUI with Mask
FolderItem.SaveAsPNGMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PNG | MBS Images Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If mask is nil no alpha channel is written to the file.
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:
- SaveAsPNGMBS(pic as picture, gamma as single = 0.0) as boolean
- SaveAsPNGMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- SaveAsPNGMBS(pic as picture, mask as picture, gamma as single = 0.0) as boolean
Some examples using this method:
- /Compression/Old ZipMBS class/zip images
- /Compression/Old ZipMBS class/zip images with offset
- /Compression/Old ZipMBS class/zip without compression
- /Images/PNG/PNG Test/PNG Test
- /Images/PNG/PNG Test/PNG Test with Options
- /Images/PNG/PNGOptimizer test
- /MacBase/NSImage Console
- /MacBase/NSImage Console with Mask
- /MacBase/NSImage GUI
- /MacBase/NSImage GUI with Mask
The items on this page are in the following plugins: MBS Images Plugin.