Platforms to show: All Mac Windows Linux Cross-Platform

Back to PictureMBS class.

PictureMBS.FillRect(value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the picture with the given color.
Example
Var l as Picture = LogoMBS(500)
Var p as new PictureMBS(l)
p.FillRect(200)
window1.Backdrop = p.CopyPicture

All channels are filled with the given value.
The range of value is 0 to 255.
Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

PictureMBS.FillRect(Value as integer, Alpha as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the given area of the picture with the given color.

All channels are filled with the given value and alpha channel (if exists) with the alpha value.
The range of value is 0 to 255.
Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

PictureMBS.FillRect(x as Integer, y as Integer, width as Integer, height as Integer, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the given area of the picture with the given color.
Example
Var l as Picture = LogoMBS(500)
Var p as new PictureMBS(l)
p.FillRect(10, 10, 20, 20, 200)
window1.Backdrop = p.CopyPicture

All channels are filled with the given value.
The range of value is 0 to 255.
Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

PictureMBS.FillRect(x as integer, y as integer, width as integer, height as integer, Value as integer, Alpha as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the given area of the picture with the given color.

All channels are filled with the given value and alpha channel (if exists) with the alpha value.
The range of value is 0 to 255.
Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

PictureMBS.FillRectApply(FillColor as color, alpha as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the picture with the given color with using alpha.
Example
Var p as new PictureMBS(300, 300, PictureMBS.ImageFormatRGB)

p.FillRectRGB &cFF0000

call p.FillRectApply 0, 0, 50, 100, &c00FF00, 0
call p.FillRectApply 50, 0, 50, 100, &c00FF00, 255*1/5
call p.FillRectApply 100, 0, 50, 100, &c00FF00, 255*2/5
call p.FillRectApply 150, 0, 50, 100, &c00FF00, 255*3/5
call p.FillRectApply 200, 0, 50, 100, &c00FF00, 255*4/5
call p.FillRectApply 250, 0, 50, 100, &c00FF00, 255*5/5

Backdrop = p.CopyPicture

Works with gray and RGB pictures.
The range of value is 0 to 255.
The alpha channel is ignored of the picture.
This function combines the RGB/Gray channels with the new fill color and the alpha value.

See also:

PictureMBS.FillRectApply(red as Integer, green as Integer, blue as Integer, alpha as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the picture with the given color with using alpha.

Works with gray and RGB pictures.
The range of value is 0 to 255.
The alpha channel is ignored of the picture.
This function combines the RGB/Gray channels with the new fill color and the alpha value.

See also:

PictureMBS.FillRectApply(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the picture with the given color with using alpha.

Works with gray and RGB pictures.
The range of value is 0 to 255.
The alpha channel is ignored of the picture.
This function combines the RGB/Gray channels with the new fill color and the alpha value.

See also:

PictureMBS.FillRectApply(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer, alpha as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the picture with the given color with using alpha.

Works with gray and RGB pictures.
The range of value is 0 to 255.
The alpha channel is ignored of the picture.
This function combines the RGB/Gray channels with the new fill color and the alpha value.

See also:

PictureMBS.FillRectRandom

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the pixels with random values.
Example
Var p as new PictureMBS(1000,1000, PictureMBS.imageFormatRGB)

p.FillRectRandom

Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

PictureMBS.FillRectRandom(x as Integer, y as Integer, width as Integer, height as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills the pixels with random values.
Example
Var p as new PictureMBS(1000,1000, PictureMBS.imageFormatRGB)
p.FillRectRandom(0,0,100,100)
Backdrop = p.CopyPicture

Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

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


The biggest plugin in space...