Platforms to show: All Mac Windows Linux Cross-Platform

Back to PictureMBS class.

Previous items Next items

PictureMBS.CopyPicture as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the RGB channels or the gray channel into a picture.
Example
// get some picture
dim logo as Picture = LogoMBS(500)

// create PictureMBS
dim rgb as new PictureMBS(logo)

// Create a gray picture and copy RGB to gray
dim g as new PictureMBS(500, 500, PictureMBS.ImageFormatG)
call g.CopyPixels(rgb)

// Create CMYK and fill cyan channel with grayscale image
dim cmyk as new PictureMBS(500, 500, PictureMBS.ImageFormatCMYK)
call cmyk.MagentaChannel.CopyPixels(g)

// display it
Backdrop = cmyk.CopyPicture

Be aware that PictureMBS objects can have more pixels than picture objects can store, so this will not always work.
Returns nil on any error (e.g. out of memory).

Works with Gray, RGB and CMYK pictures and supports alpha channel. For CMYK we have some simply conversion to RGB to give you a preview. For a real world application, use Color Conversion like our LCMS plugin.

See also:

PictureMBS.CopyPicture(x as Integer, y as Integer, w as Integer, h as Integer) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the RGB channels or the gray channel in the given area into a picture.

Be aware that PictureMBS objects can have more pixels than picture objects can store, so this will not always work.
Returns nil on any error (e.g. out of memory).

Works with Gray, RGB and CMYK pictures and supports alpha channel. For CMYK we have some simply conversion to RGB to give you a preview. For a real world application, use Color Conversion like our LCMS plugin.

See also:

PictureMBS.CopyPictureWithAlpha as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies picture with alpha.

Returns a picture with HasAlphaChannel = true.

See also:

PictureMBS.CopyPictureWithAlpha(x as integer, y as integer, w as integer, h as integer) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies picture in rectangle with alpha.

Returns a picture with HasAlphaChannel = true.

See also:

PictureMBS.CopyPictureWithMask as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the picture with mask.

Be aware that PictureMBS objects can have more pixels than picture objects can store, so this will not always work.
Returns nil on any error (e.g. out of memory).

Works with Gray, RGB and CMYK pictures and supports alpha channel. For CMYK we have some simply conversion to RGB to give you a preview. For a real world application, use Color Conversion like our LCMS plugin.

See also:

PictureMBS.CopyPictureWithMask(x as Integer, y as Integer, w as Integer, h as Integer) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the picture with mask in the given area.

Be aware that PictureMBS objects can have more pixels than picture objects can store, so this will not always work.
Returns nil on any error (e.g. out of memory).

Works with Gray, RGB and CMYK pictures and supports alpha channel. For CMYK we have some simply conversion to RGB to give you a preview. For a real world application, use Color Conversion like our LCMS plugin.

See also:

PictureMBS.CopyPixels(source as PictureMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies all pixels from the source picture to the current picture.
Example
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
// create new picture:
// can be any image format: ImageFormatRGB, ImageFormatG, ImageFormatBGR, etc.
dim d as new PictureMBS(l.Width, l.Height, PictureMBS.ImageFormatRGB)

if d.CopyPixels(p) then
Backdrop = d.CopyPicture
else
MsgBox "Failed."
end if

This function is optimized for several image formats:
- Gray to Gray.
- RGB to Gray uses R*0.3+G*0.59+B*0.11.
- RGB to RGB.
- Gray to RGB fill red, green and blue with the same gray value.
- CMYK to CMYK
- CMYK to Gray, copies from black channel
- Gray to CMYK, copies to black channel
If an alpha channel exists in both images, it is copied.

See also:

Some examples using this method:

PictureMBS.CopyPixels(source as PictureMBS, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies pixels from the source picture to the current picture.
Example
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
dim d as new PictureMBS(700, 700, PictureMBS.ImageFormatRGB)

if d.CopyPixels(p,100,100,500,500) then
Backdrop = d.CopyPicture
else
MsgBox "Failed."
end if

DestWidth and DestHeight specify how many pixels are copied.
DestX/DestY specify the destination position in the current picture.

This function is optimized for several image formats:
- Gray to Gray.
- RGB to Gray uses R*0.3+G*0.59+B*0.11.
- RGB to RGB.
- Gray to RGB fill red, green and blue with the same gray value.
- CMYK to Gray, copies from black channel
- Gray to CMYK, copies to black channel
If an alpha channel exists in both images, it is copied.

See also:

PictureMBS.CopyPixels(source as PictureMBS, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, SourceX as Integer, SourceY as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies pixels from the source picture to the current picture.
Example
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
dim d as new PictureMBS(700, 700, PictureMBS.ImageFormatRGB)

if d.CopyPixels(p,100,100,500,500,0,0) then
Backdrop = d.CopyPicture
else
MsgBox "Failed."
end if

SourceX/SourceY is the position in the source picture.
DestWidth/DestHeight specify how many pixels are copied.
DestX/DestY specify the destination position in the current picture.

This function is optimized for several image formats:
- Gray to Gray.
- RGB to Gray uses R*0.3+G*0.59+B*0.11.
- RGB to RGB.
- Gray to RGB fill red, green and blue with the same gray value.
- CMYK to Gray, copies from black channel
- Gray to CMYK, copies to black channel
If an alpha channel exists in both images, it is copied.

See also:

PictureMBS.CreatePictureMBS(width as Integer, height as Integer, ImageFormat as Integer) as PictureMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 9.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new PictureMBS object.

Returns nil if no factory can create a valid picture.

First the Factory on the current ImageMBS object (self) is asked to create the picture.
Second the global Factory object is asked.
Third the normal PictureMBS constructor is used.

See also:

Some examples using this method:

PictureMBS.CyanChannel as PictureMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The cyan channel of a CMYK picture as a new PictureMBS object.

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.DataStringInFormat(ImageFormat as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Large Picture MBS Images Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The data of this picture as a string.

Strings are limit to 2 GB, but the actual limit is certainly smaller.

You can get and set the image data with this method in the native format.
If you set the data, use a string with at least RowSize bytes.
If you query the data, you will get a copy of the data bytes in a string.
Returns "" on any error.
May raise OutOfBoundsException for invalid index.

Version 18.1 or later will raise an out of memory exception for 32-bit applications if the memory needed will exceed 2 GB in memory. Allocating that many memory will be impossible.
(Read and Write computed property)

Some examples using this property:

PictureMBS.DiffuseFilter(dest as PictureMBS, level 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
Applies a diffuse filter to the image.

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.
Level must be between 0 and min(width,height).

PictureMBS.DitherFilter(dest as PictureMBS, matrix as Integer, levels as Integer) as PictureMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Applies the dither filter to the picture.

Use for the matrix parameter one of the Dither* constants.

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 is a number between 2 and 256 and specifies how many color levels are in the final picture.

Returns nil on any error.

Some examples using this method:

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method applys the pixel values from the Red, Green and Blue channel of the picture with calculating in the mask of the picture.

This is the calculation:
Pixel.Red = (Pixel.Red * (255-Pixel.Mask) + PicturePixel.Red * PicturePixel.Mask) / 255
Pixel.Green = (Pixel.Green * (255-Pixel.Mask) + PicturePixel.Green * PicturePixel.Mask) / 255
Pixel.Blue = (Pixel.Blue * (255-Pixel.Mask) + PicturePixel.Blue * PicturePixel.Mask) / 255

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.

See also:

Some examples using this method:

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, SourceX as Integer, SourceY as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method applys the pixel values from the Red, Green and Blue channel of the picture with calculating in the mask of the picture.

This is the calculation:
Pixel.Red = (Pixel.Red * (255-Pixel.Mask) + PicturePixel.Red * PicturePixel.Mask) / 255
Pixel.Green = (Pixel.Green * (255-Pixel.Mask) + PicturePixel.Green * PicturePixel.Mask) / 255
Pixel.Blue = (Pixel.Blue * (255-Pixel.Mask) + PicturePixel.Blue * PicturePixel.Mask) / 255

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method applys the pixel values from the Red, Green and Blue channel of the picture with calculating in the mask of the picture.

This is the calculation:
Pixel.Red = (Pixel.Red * (255-Pixel.Mask) + PicturePixel.Red * PicturePixel.Mask) / 255
Pixel.Green = (Pixel.Green * (255-Pixel.Mask) + PicturePixel.Green * PicturePixel.Mask) / 255
Pixel.Blue = (Pixel.Blue * (255-Pixel.Mask) + PicturePixel.Blue * PicturePixel.Mask) / 255

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method applys the pixel values from the Red, Green and Blue channel of the picture with calculating in the mask of the picture.

This is the calculation:
Pixel.Red = (Pixel.Red * (255-Pixel.Mask) + PicturePixel.Red * PicturePixel.Mask) / 255
Pixel.Green = (Pixel.Green * (255-Pixel.Mask) + PicturePixel.Green * PicturePixel.Mask) / 255
Pixel.Blue = (Pixel.Blue * (255-Pixel.Mask) + PicturePixel.Blue * PicturePixel.Mask) / 255

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method copies the pixel values from the Red, Green and Blue channel of the picture and the pixel value of the picture's mask to the PictureMBS replacing old values.

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

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

Some examples using this method:

PictureMBS.DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, SourceX as Integer, SourceY as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method copies the pixel values from the Red, Green and Blue channel of the picture and the pixel value of the picture's mask to the PictureMBS replacing old values.

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

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.

See also:

PictureMBS.DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method copies the pixel values from the Red, Green and Blue channel of the picture and the pixel value of the picture's mask to the PictureMBS replacing old values.

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

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawMaskedPictureRGB(pic as picture, InvertMask as boolean=False)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

This method copies the pixel values from the Red, Green and Blue channel of the picture and the pixel value of the picture's mask to the PictureMBS replacing old values.

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

Works only if the PictureMBS has Red, Green, Blue and Alpha channels.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureBlueToGrayChannel(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the blue channel of a picture object into the gray channel of this picture.

If you want to copy the blue channel of the picture into the blue channel of the PictureMBS, then first get a PictureMBS object for the blue channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureBlueToGrayChannel(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 iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the blue channel of a picture object into the gray channel of this picture.

If you want to copy the blue channel of the picture into the blue channel of the PictureMBS, then first get a PictureMBS object for the blue channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureGreenToGrayChannel(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the green channel of a picture object into the gray channel of this picture.

If you want to copy the green channel of the picture into the green channel of the PictureMBS, then first get a PictureMBS object for the green channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureGreenToGrayChannel(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 iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the green channel of a picture object into the gray channel of this picture.

If you want to copy the green channel of the picture into the green channel of the PictureMBS, then first get a PictureMBS object for the green channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureRedToGrayChannel(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the red channel of a picture object into the gray channel of this picture.

If you want to copy the red channel of the picture into the red channel of the PictureMBS, then first get a PictureMBS object for the red channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureRedToGrayChannel(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 iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the red channel of a picture object into the gray channel of this picture.

If you want to copy the red channel of the picture into the red channel of the PictureMBS, then first get a PictureMBS object for the red channel and use this method on this object.
If you want to copy Pixels from a PictureMBS to a PictureMBS, use CopyPixels.

See also:

PictureMBS.DrawPictureRGB(pic as picture)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

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:

Some examples using this method:

PictureMBS.DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

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:

PictureMBS.DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

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:

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 iOS Targets
method Large Picture MBS Images Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a picture into this PictureMBS object.

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:

PictureMBS.EngraveFilter(dest as PictureMBS, level 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
Applies an engrave filter to the image.

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.

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
dim l as Picture = LogoMBS(500)
dim 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
dim l as Picture = LogoMBS(500)
dim 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:

Previous items Next items

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


The biggest plugin in space...