Platforms to show: All Mac Windows Linux Cross-Platform

CGCreateImageMBS(pic as picture) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method CoreGraphics MBS MacCG Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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

If the image has a mask, it is used.

See also:

Some examples using this global method:

CGCreateImageMBS(pic as picture, mask as picture) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method CoreGraphics MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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

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

Blog Entries

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


The biggest plugin in space...