MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class PNGpictureMBS
class, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Mac OS X: Works, Windows: Does nothing, Linux x86: Works, Feedback.

Function: A class for a PNG picture.
PNGpictureMBS.CombinePictureWithMask as picture
method, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Plugin version: 4.0, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a new picture which is created using the picture and it's mask.
Example:
dim t as TiffPictureMBS
' ...
canvas1.backdrop=t.CombinePictureWithMask

PNGpictureMBS.height as integer
property, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The height of the picture.
Notes: (Read and Write property)
PNGpictureMBS.mask as picture
property, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The mask of the picture.
Notes:
May be nil.
(Read and Write property)
PNGpictureMBS.pict as picture
property, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The picture data of the picture.
Notes:
If this image is all black, you may use a different gamma setting.
(Read and Write property)
PictureToPNGStringMBS(pic as picture, gamma as single) as string
global method, Pictures Import and Export, MBS PNG Plugin (PNG), Plugin version: 6.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Saves a picture to a PNG string.
Notes:
If mask is nil 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

Some examples using this method:

PictureToPNGStringMBS(pic as picture, mask as picture, gamma as single) as string
global method, Pictures Import and Export, MBS PNG Plugin (PNG), Plugin version: 6.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Saves a picture to a PNG string.
Notes:
Returns "" on any error.
If pic has a mask, it is written to the file as alpha channel.

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

Some examples using this method:

PNGpictureMBS.PNGLibVersion as string
method, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Plugin version: 4.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The version of the PNG library compiled into the plugin.
Notes: Please ask if you need a newer version.
PNGStringToPictureMBS(data as string, gamma as single) as picture
global method, Pictures Import and Export, MBS PNG Plugin (PNG), Plugin version: 6.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Reads PNG data from a string variable.
Notes:
If the picture has an alpah channel the returned picture will have a mask.

Returns picture on success and nil 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

Some examples using this method:

PNGStringToPNGPictureMBS(data as string, gamma as single) as PNGPictureMBS
global method, Pictures Import and Export, MBS PNG Plugin (PNG), Plugin version: 6.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Reads PNG data from a string variable.
Notes:
Returns PNGPictureMBS object on success and nil 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
PNGpictureMBS.width as integer
property, Pictures Import and Export, MBS PNG Plugin (PNG), class PNGpictureMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The width of the picture.
Notes: (Read and Write property)

Next items

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