Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

CGCreateImageMBS(pic as picture) as CGImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreGraphics MBS MacCG Plugin 8.6 Yes No No No No
Function: Creates a new CGImageMBS from the given images.
Example:
dim c as CGImageMBS
dim pic, mask as Picture
// get picture and mask

c=CGCreateImageMBS(pic)
if c<>Nil then
// go on
end if
Notes: If the image has a mask, it is used.

See also:

Some examples using this method:

Feedback, Comments & Corrections

CGCreateImageMBS(pic as picture, mask as picture) as CGImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreGraphics MBS MacCG Plugin 2.7 Yes No No No No
Function: Creates a new CGImageMBS from the given images.
Example:
dim c as CGImageMBS
dim pic, mask as Picture
// get picture and mask

c=CGCreateImageMBS(pic, mask)
if c<>Nil then
// go on
end if
Notes:
The mask is taken from the second image.
With 11.3 plugins we are deprecating to pass a mask. The plugin prefers to simply take the mask or alpha channel of the picture itself.

See also:

Some examples using this method:

Blog Entries

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Plugins