CoreGraphics: CGCreateImageMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem