Platforms to show: All Mac Windows Linux Cross-Platform
Back to PictureMBS class.
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 |
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 |
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:
- FillRectApply(red as Integer, green as Integer, blue as Integer, alpha as Integer) as boolean
- FillRectApply(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer) as boolean
- 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
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 |
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:
- FillRectApply(FillColor as color, alpha as Integer) as boolean
- FillRectApply(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer) as boolean
- 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
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 |
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:
- FillRectApply(FillColor as color, alpha as Integer) as boolean
- FillRectApply(red as Integer, green as Integer, blue as Integer, alpha as Integer) as boolean
- 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
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 |
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:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 10.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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 |
Works with Gray, RGB and CMYK pictures and supports alpha channel.
See also:
PictureMBS.FillRectRGB(FillColor as color)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works only if the picture has RGB channels.
See also:
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
Some examples using this method:
PictureMBS.FillRectRGB(FillColor as color, alpha as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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:
- FillRectRGB(FillColor as color)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
PictureMBS.FillRectRGB(red as Integer, green as Integer, blue as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works only if the picture has RGB channels.
The ranges of red, green and blue are 0 to 255.
See also:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
PictureMBS.FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
PictureMBS.FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works only if the picture has RGB channels.
See also:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
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 | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
- 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)
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 | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works only if the picture has RGB channels.
The ranges of red, green and blue are 0 to 255.
See also:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- 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)
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 | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works only if the picture has RGB channels.
Alpha is ignored if the picture does not have an alpha channel.
See also:
- FillRectRGB(FillColor as color)
- FillRectRGB(FillColor as color, alpha as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer)
- FillRectRGB(red as Integer, green as Integer, blue as Integer, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, FillColor as color, alpha as Integer)
- FillRectRGB(x as Integer, y as Integer, width as Integer, height as Integer, red as Integer, green as Integer, blue as Integer)
PictureMBS.GainFilter(dest as PictureMBS, gain as Double, bias as Double) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
Some examples using this method:
PictureMBS.GammaFilter(dest as PictureMBS, gamma as Double) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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:
- GammaFilter(dest as PictureMBS, gamma as Double, alphaGamma as Double) as PictureMBS
- GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double) as PictureMBS
- GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double, alphaGamma as Double) as PictureMBS
Some examples using this method:
PictureMBS.GammaFilter(dest as PictureMBS, gamma as Double, alphaGamma as Double) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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:
- GammaFilter(dest as PictureMBS, gamma as Double) as PictureMBS
- GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double) as PictureMBS
- GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double, alphaGamma as Double) as PictureMBS
PictureMBS.GammaFilter(dest as PictureMBS, redGamma as Double, greenGamma as Double, blueGamma as Double) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.GreenChannel as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works with Gray, RGB and CMYK pictures and supports alpha channel.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works with Gray, RGB and CMYK pictures and supports alpha channel.
See also:
PictureMBS.Invert(x as Integer, y as Integer, w as Integer, h as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Works with Gray, RGB and CMYK pictures and supports alpha channel.
See also:
PictureMBS.MagentaChannel as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 11.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.MapInRows(FirstRow as Integer, LastRow as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 17.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function does nothing if given rows are already mapped in.
Fails if range is invalid, image is invalid or mapping is not possible.
Returns true if not a mapped image.
Will resize memory buffer size to be big enough for those rows.
PictureMBS.MirroredView as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 10.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
So if the new picture draws into the first row, the change will be in the last row of the original picture.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 18.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pictures with alpha channel must be multiplied, while pictures with mask have the alpha unmultiplied and inverse in the mask.
See also:
PictureMBS.Multiply(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 | 18.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pictures with alpha channel must be multiplied, while pictures with mask have the alpha unmultiplied and inverse in the mask.
See also:
PictureMBS.NeonFilter(dest as PictureMBS) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
Works with Gray, RGB and CMYK pictures and supports alpha channel.
PictureMBS.OilFilter(dest as PictureMBS, levels as Integer, range as Integer) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
Levels must be between 0 and 256.
Range must be between 0 and min(width,height).
Returns nil on any error.
Works with Gray, RGB and CMYK pictures and supports alpha channel.
PictureMBS.RawRow(index as Integer) as memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This memoryblock is pointing to the original data, so any modification is applied to the picture.
Returns nil on any error.
May raise OutOfBoundsException for invalid index.
For pictures using virtual memory, this memoryblock can become invalid for the next call to any PictureMBS method!
Some examples using this method:
PictureMBS.RawRowPtr(index as Integer) as Ptr
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 17.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This ptr is pointing to the original data, so any modification is applied to the picture.
Returns nil on any error.
May raise OutOfBoundsException for invalid index.
For pictures using virtual memory, this ptr can become invalid for the next call to any PictureMBS method!
PictureMBS.RedChannel as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 8.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.RGBChannels as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil if the image is not a RGB picture.
No copy is made of the actual pixel data. Modifying the channel picture will modify the original picture.
Use this function to access the RGB pixels directly without modifying an alpha channel
The resulting PictureMBS object is a RGB picture.
PictureMBS.RGBToGray(mode as Integer = 0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 15.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Only for RGB pictures and picture stays RGB, but all channels have same color.
Returns true on success and false on failure.
Modes:
0 | y = 0.33 * R + 0.5 * G + 0.16 * B | Faster version of 3 |
1 | y = 0.375 * R + 0.5 * G + 0.125 * B | Faster version of 3 |
2 | y = 0.2126 * R + 0.7152 * G + 0.0722 * B | Photometric/digital ITU-R |
3 | y = 0.299 * R + 0.587 * G + 0.114 * B | Digital CCIR601 |
4 | y = 0.300 * R + 0.588 * G + 0.112 * B | Faster version of 3 |
Mode 2 and 3 uses doubles and mode 0, 4 and 1 use integers so they should be faster.
Still Mode 0 and 1 are just approximation formulas which trade accuracy for perfomance.
e.g. a red pixel (FF0000) will turn to 555555 in Mode 0, 5F5F5F in Mode 1, 363636 in Mode 2 and 4C4C4C in Mode 3 and 4.
PictureMBS.Rotate(angle as Double, Red as Integer = 0, Green as Integer = 0, Blue as Integer = 0, Alpha as Integer = 0, Gray as Integer = 0, Cyan as Integer = 0, Magenta as Integer = 0, Yellow as Integer = 0, Black as Integer = 0) as PictureMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
With Red, Blue, Green, Alpha and Gray specify the color of the fill color.
If dest is nil, the PictureFactoryMBS object (local on self or global) is used to create the new picture.
Works with Gray, RGB and CMYK pictures and supports alpha channel.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Large Picture | MBS Images Plugin | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as HMirror and VMirror together.
There are two Rotate180 methods. One makes a copy and one not. This one does not make a copy.
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.