Platforms to show: All Mac Windows Linux Cross-Platform
Back to PictureMBS class.
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 |
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 |
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 |
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 |
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:
- 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)
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
- DrawMaskedPictureApplyMaskRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
- DrawMaskedPictureApplyMaskRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- 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)
- DrawMaskedPictureApplyMaskRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- 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)
- DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
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 |
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:
- 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)
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
- DrawMaskedPictureRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
- DrawMaskedPictureRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- 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)
- DrawMaskedPictureRGB(pic as picture, InvertMask as boolean=False)
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 |
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:
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, InvertMask as boolean=False)
- 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)
- DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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:
- DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer)
- DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer)
- DrawPictureRGB(pic as picture, DestX as Integer, DestY as Integer, DestWidth as Integer, DestHeight as Integer, SourceX as Integer, SourceY as Integer)
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 |
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 |
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 |
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:
The items on this page are in the following plugins: MBS Images Plugin.