Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

PictureMBS.CopyMask as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Copies the alpha channel into a mask picture.
Notes:
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 for all pictures with alpha channel.

See also:

Feedback, Comments & Corrections

PictureMBS.CopyMask(x as Integer, y as Integer, w as Integer, h as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Copies the given area of the alpha channel into a mask picture.
Notes:
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 for all pictures with alpha channel.

See also:

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

PictureMBS.CopyPicture(x as Integer, y as Integer, w as Integer, h as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Copies the RGB channels or the gray channel in the given area into a picture.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.CopyPictureWithAlpha as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Copies picture with alpha.
Notes: Returns a picture with HasAlphaChannel = true.

See also:

Feedback, Comments & Corrections

PictureMBS.CopyPictureWithAlpha(x as integer, y as integer, w as integer, h as integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Copies picture in rectangle with alpha.
Notes: Returns a picture with HasAlphaChannel = true.

See also:

Feedback, Comments & Corrections

PictureMBS.CopyPictureWithMask as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Copies the picture with mask.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.CopyPictureWithMask(x as Integer, y as Integer, w as Integer, h as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Copies the picture with mask in the given area.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.CopyPixels(source as PictureMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: 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
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: 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
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: 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
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.CreatePictureMBS(width as Integer, height as Integer, ImageFormat as Integer) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.0 Yes Yes Yes Yes No
Function: Creates a new PictureMBS object.
Notes:
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 which use this method:

Feedback, Comments & Corrections

PictureMBS.CyanChannel as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 11.0 Yes Yes Yes Yes No
Function: The cyan channel of a CMYK picture as a new PictureMBS object.
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.DataStringInFormat(ImageFormat as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 9.2 Yes Yes Yes Yes No
Function: The data of this picture as a string.
Notes:
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)

Feedback, Comments & Corrections

PictureMBS.DiffuseFilter(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 a diffuse 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.

Returns nil on any error.
Level must be between 0 and min(width,height).

Feedback, Comments & Corrections

PictureMBS.DitherFilter(dest as PictureMBS, matrix as Integer, levels as Integer) 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 dither filter to the picture.
Notes:
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.

Feedback, Comments & Corrections

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 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:
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:

Feedback, Comments & Corrections

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 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:
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:

Feedback, Comments & Corrections

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
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:
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:

Feedback, Comments & Corrections

PictureMBS.DrawMaskedPictureApplyMaskRGB(pic as picture, InvertMask as boolean=False)
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:
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:

Feedback, Comments & Corrections

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 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:
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:

Feedback, Comments & Corrections

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 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:
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:

Feedback, Comments & Corrections

PictureMBS.DrawMaskedPictureRGB(pic as picture, DestX as Integer, DestY as Integer, InvertMask as boolean=False)
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:
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:

Feedback, Comments & Corrections

PictureMBS.DrawMaskedPictureRGB(pic as picture, InvertMask as boolean=False)
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:
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:

Feedback, Comments & Corrections

PictureMBS.DrawPictureBlueToGrayChannel(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 the blue channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Draws the blue channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.DrawPictureGreenToGrayChannel(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 the green channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Draws the green channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

PictureMBS.DrawPictureRedToGrayChannel(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 the red channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Draws the red channel of a picture object into the gray channel of this picture.
Notes:
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:

Feedback, Comments & Corrections

Previous items Next items

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





Links
MBS FileMaker Plugins