Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

PictureMBS.DrawPictureRGB(pic as picture)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 10.1 Yes Yes Yes Yes No
Function: Draws a picture into this PictureMBS object.
Notes:
Works only if the PictureMBS has Red, Green and Blue channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

This is the calculation:
Pixel.Red = PicturePixel.Red
Pixel.Green = PicturePixel.Green
Pixel.Blue = PicturePixel.Blue

This method does ignore a mask in the given picture and does not change set the alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 10.1 Yes Yes Yes Yes No
Function: Draws a picture into this PictureMBS object.
Notes:
Works only if the PictureMBS has Red, Green and Blue channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

This is the calculation:
Pixel.Red = PicturePixel.Red
Pixel.Green = PicturePixel.Green
Pixel.Blue = PicturePixel.Blue

This method does ignore a mask in the given picture and does not change set the alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Draws a picture into this PictureMBS object.
Notes:
Works only if the PictureMBS has Red, Green and Blue channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

This is the calculation:
Pixel.Red = PicturePixel.Red
Pixel.Green = PicturePixel.Green
Pixel.Blue = PicturePixel.Blue

This method does ignore a mask in the given picture and does not change set the alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, SourceX as Integer, SourceY as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Draws a picture into this PictureMBS object.
Notes:
Works only if the PictureMBS has Red, Green and Blue channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

This is the calculation:
Pixel.Red = PicturePixel.Red
Pixel.Green = PicturePixel.Green
Pixel.Blue = PicturePixel.Blue

This method does ignore a mask in the given picture and does not change set the alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.EngraveFilter(dest as PictureMBS, level as Integer) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.2 Yes Yes Yes Yes No
Function: Applies an engrave filter to the image.
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.

Level must be between 0 and min(width,height).

Returns nil on any error.

Feedback, Comments & Corrections

PictureMBS.FillRect(value as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Fills the picture with the given color.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
p.FillRect(200)
window1.Backdrop = p.CopyPicture
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.FillRect(Value as integer, Alpha as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Fills the given area of the picture with the given color.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.FillRect(x as Integer, y as Integer, width as Integer, height as Integer, value as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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.FillRect(10, 10, 20, 20, 200)
window1.Backdrop = p.CopyPicture
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Fills the given area of the picture with the given color.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.FillRectApply(FillColor as color, alpha as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 12.3 Yes Yes Yes Yes No
Function: Fills the picture with the given color with using alpha.
Example:
dim 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
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.FillRectApply(red as Integer, green as Integer, blue as Integer, alpha as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 12.3 Yes Yes Yes Yes No
Function: Fills the picture with the given color with using alpha.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 12.3 Yes Yes Yes Yes No
Function: Fills the picture with the given color with using alpha.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 12.3 Yes Yes Yes Yes No
Function: Fills the picture with the given color with using alpha.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.FillRectRandom
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 10.3 Yes Yes Yes Yes No
Function: Fills the pixels with random values.
Example:
dim p as new PictureMBS(1000,1000, PictureMBS.imageFormatRGB)

p.FillRectRandom
Notes: Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.FillRectRandom(x as Integer, y as Integer, width as Integer, height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 10.3 Yes Yes Yes Yes No
Function: Fills the pixels with random values.
Example:
dim p as new PictureMBS(1000,1000, PictureMBS.imageFormatRGB)
p.FillRectRandom(0,0,100,100)
Backdrop = p.CopyPicture
Notes: Works with Gray, RGB and CMYK pictures and supports alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

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)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.GainFilter(dest as PictureMBS, gain as Double, bias as Double) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

PictureMBS.GammaFilter(dest as PictureMBS, gamma as Double) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.GammaFilter(dest as PictureMBS, gamma as Double, alphaGamma as Double) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double, alphaGamma as Double) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
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:

Feedback, Comments & Corrections

PictureMBS.GrayChannel as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

PictureMBS.GreenChannel as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

Previous items Next items

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





Links
MBS Xojo Plugins