Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

PictureMBS.FillRectRGB(red as integer, green as integer, blue as integer, alpha as integer)
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Fills the picture with the given color.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
p.FillRectRGB(255, 0, 0, 0)
window1.Backdrop = p.CopyPicture
Notes:
Works only if the picture has RGB channels.
Alpha is ignored if the picture does not have an alpha channel.
The ranges of alpha, red, green and blue are 0 to 255.

See also:

PictureMBS.FillRectRGB(x as integer, y as integer, width as integer, height as integer, FillColor as color, alpha as integer)
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Fills the given area of the picture with the given color.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
p.FillRectRGB(10,10,20,20,&cFF0000, 0)
window1.Backdrop = p.CopyPicture
Notes:
Works only if the picture has RGB channels.
Alpha is ignored if the picture does not have an alpha channel.
The range of aloha is 0 to 255.

See also:

PictureMBS.FillRectRGB(x as integer, y as integer, width as integer, height as integer, red as integer, green as integer, blue as integer)
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Fills the given area of the picture with the given color.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
p.FillRectRGB(10,10,20,20, 255, 0, 0)
window1.Backdrop = p.CopyPicture
Notes:
Works only if the picture has RGB channels.
The ranges of red, green and blue are 0 to 255.

See also:

PictureMBS.FillRectRGB(x as integer, y as integer, width as integer, height as integer, red as integer, green as integer, blue as integer, alpha as integer)
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Fills the given area of the picture with the given color.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
p.FillRectRGB(10, 10, 20, 20, 255, 0, 0, 0)
window1.Backdrop = p.CopyPicture
Notes:
Works only if the picture has RGB channels.
Alpha is ignored if the picture does not have an alpha channel.

See also:

PictureMBS.GainFilter(dest as PictureMBS, gain as double, bias as double) as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Applies the gain filter to the picture.
Notes:
if dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

Returns nil on any error.
PictureMBS.GammaFilter(dest as PictureMBS, gamma as double) as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Changes the gamma value of the picture.
Notes:
If dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

Returns nil on any error.

See also:

PictureMBS.GammaFilter(dest as PictureMBS, gamma as double, alphaGamma as double) as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Changes the gamma value of the picture.
Notes:
If dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

If the picture has no alpha channel, the alpha parameter is ignored.

Returns nil on any error.

See also:

PictureMBS.GammaFilter(dest as PictureMBS, redGamma as double, greenGamma as double, blueGamma as double) as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Changes the gamma value of the picture.
Notes:
If dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

For grayscale pictures the gray color is calculated from red, green and blue value.

Returns nil on any error.

See also:

PictureMBS.GammaFilter(dest as PictureMBS, redGamma as double, greenGamma as double, blueGamma as double, alphaGamma as double) as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Changes the gamma value of the picture.
Notes:
If dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

For grayscale pictures the gray color is calculated from red, green and blue value.
If the picture has no alpha channel, the alpha parameter is ignored.

Returns nil on any error.

See also:

PictureMBS.GrayChannel as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The gray channel as a new PictureMBS object.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatRGB)
dim r as PictureMBS = p.GrayChannel
r.fillrect(100) // fill only gray channel
Notes:
Returns nil if this channel does not exist.
No copy is made of the actual pixel data. Modifying the channel picture will modify the original picture.
Use this function to access the pixels of the channel directly.
The resulting PictureMBS object is a grayscale picture.
PictureMBS.GrayOffset as Integer
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The internal offset for pixels in the gray channel.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAG)
MsgBox str(p.GrayOffset)
Notes: (Read only property)
PictureMBS.GreenChannel as PictureMBS
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The green channel as a new PictureMBS object.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatRGB)
dim r as PictureMBS = p.GreenChannel
r.fillrect(100) // fill only green channel
Notes:
Returns nil if this channel does not exist.
No copy is made of the actual pixel data. Modifying the channel picture will modify the original picture.
Use this function to access the pixels of the channel directly.
The resulting PictureMBS object is a grayscale picture.
PictureMBS.GreenOffset as Integer
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The internal offset for pixels in the green channel.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.GreenOffset)
Notes: (Read only property)
PictureMBS.HasAlpha as Boolean
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the picture has an alpha channel.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatGA)
MsgBox str(p.HasAlpha)
Notes: (Read only property)
PictureMBS.HasBlue as Boolean
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the picture has a blue channel.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.HasBlue)
Notes: (Read only property)
PictureMBS.HasGray as Boolean
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the picture has a gray channel.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatGA)
MsgBox str(p.HasGray)
Notes: (Read only property)
PictureMBS.HasGreen as Boolean
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the picture has a green channel.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.HasGreen)
Notes: (Read only property)
PictureMBS.HasRed as Boolean
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the picture has a channel.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.HasRed)
Notes: (Read only property)
PictureMBS.Height as Integer
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The height of the picture in pixels.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.Height)
Notes: (Read only property)
PictureMBS.HMirror
method, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Mirrors the image content horizontally.
Example:
// get some picture
dim l as Picture = LogoMBS(500)
// create new image
dim p as new PictureMBS(l)
// mirror
p.HMirror
// show in window
window1.Backdrop = p.CopyPicture
PictureMBS.ImageFormat as Integer
property, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Console safe, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The image format of this picture object.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.ImageFormat)
Notes:
See the ImageFormat* constants.
(Read only property)
PictureMBS.ImageFormat1of3 = &h0000000F
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the first byte with pixelsize=3.
PictureMBS.ImageFormat1of4 = &h00000012
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the first byte with pixelsize=4.
PictureMBS.ImageFormat2of3 = &h00000010
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the second byte with pixelsize=3.
PictureMBS.ImageFormat2of4 = &h00000013
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the second byte with pixelsize=4.
PictureMBS.ImageFormat3of3 = &h00000011
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the third byte with pixelsize=3.
PictureMBS.ImageFormat3of4 = &h00000014
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the third byte with pixelsize=4.
PictureMBS.ImageFormat4of4 = &h00000015
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Notes:
This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
Targets the forth byte with pixelsize=4.
PictureMBS.ImageFormatABGR = 9
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
PictureMBS.ImageFormatAG = &h0000000D
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAG)
PictureMBS.ImageFormatAofABGR = &h00000012
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAofABGR)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatAofARGB = &h00000012
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAofARGB)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatAofBGRA = &h00000015
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAofBGRA)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatAofRGBA = &h00000015
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatAofRGBA)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatARGB = 4
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatARGB)
PictureMBS.ImageFormatBGR = 6
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBGR)
PictureMBS.ImageFormatBGRA = 7
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBGRA)
PictureMBS.ImageFormatBGRX = 8
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBGRX)
PictureMBS.ImageFormatBofABGR = &h00000013
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofABGR)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBofARGB = &h00000015
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofARGB)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBofBGR = &h0000000F
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofBGR)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBofBGRA = &h00000012
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofBGRA)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBofRGB = &h00000011
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofRGB)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBofRGBA = &h00000014
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatBofRGBA)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.
PictureMBS.ImageFormatBuffer = &h00000016
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 10.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The image format for picture objects which are used for data storage.
Notes: This format is for PixelSize = 1 and no channels.
PictureMBS.ImageFormatG = &h0000000B
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatG)
PictureMBS.ImageFormatGA = &h0000000C
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 8.7, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatGA)
PictureMBS.ImageFormatGofABGR = &h00000014
const, Large Picture, MBS REALbasic LargePicture Plugin (Image), class PictureMBS, Plugin version: 9.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: One of the possible image formats.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatGofABGR)
Notes: This is the imageformat to use if you target only a gray channel in a RGB picture in memory.

Previous items Next items

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




Links
MBS Realbasic Chart Plugins - Christians Software aus Nickenich