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 PaletteMBS
class, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: A color PaletteMBS.
PaletteMBS.Col(i as integer) as color
method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The color array.
Notes:
Index goes from 0 to count-1.
(Read and Write runtime property)
PaletteMBS.count as integer
property, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: How many colors are inside this PaletteMBS.
Notes:
This property should be 2, 4, 16 or 256.
Default is 256.
(Read and Write property)
PaletteMBS.CountColors as integer
method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Counts how many different colors are in the palette.
PaletteMBS.Mem as memoryblock
method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a memoryblock to the binary data of this PaletteMBS.
Notes:
The block is 1024 bytes big and contains 256 32bit values like 00RRGGBB.
The memoryblock is only valid as long as the PaletteMBS object is living.
NewBluePaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 256 color PaletteMBS with blue shades.

Some examples using this method:

NewGrayPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 256 color PaletteMBS with grays.

Some examples using this method:

NewGreenPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 256 color PaletteMBS with green shades.

Some examples using this method:

NewPaletteMBS(count as integer) as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Makes a new PaletteMBS with the given number of colors.
Notes:
Same as:
p=new PaletteMBS
p.count=count
return p
NewPalmPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns the Palm system color PaletteMBS.
Notes: If you want to make 256 color pictures for use on a Palm, you may need that on a Mac.

Some examples using this method:

PaletteMBS.NewPicture(width as integer,height as integer) as picture
method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), class PaletteMBS, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Creates a new picture using this PaletteMBS.
Notes: On Windows, RB can only work with 32bit picture so this function will return a 32bit picture for you.
NewRedPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 256 color PaletteMBS with red shades.

Some examples using this method:

NewSystemPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns the system color PaletteMBS.
Notes: On Windows it is a hard coded PaletteMBS as you can only read the current PaletteMBS when the user uses 8bit video.

Some examples using this method:

NewWebPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 256 color PaletteMBS with the 216 websave colors.
Notes: The PaletteMBS has 256 colors, but only 216 are used.

Some examples using this method:

NewWindowsPaletteMBS as PaletteMBS
global method, Graphics & Pictures, MBS Picture Plugin (PicturePalette), Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns the Windows system color PaletteMBS.
Notes: If you want to make 256 color pictures for use on Windows, you may need that on a Mac.

Some examples using this method:

Next items

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