Platforms to show: All Mac Windows Linux Cross-Platform

BlendPicturesWithMaskMBS(result as picture, source as picture, dest as picture, mask as picture, x as Integer, y as Integer, width as Integer, height as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Graphics & Pictures MBS Picture Plugin 8.7 ✅ Yes ✅ Yes ❌ No ✅ Yes All
Blends two pictures.
Example
dim a,b,c,m as picture

a=New Picture(100,100,32)
b=New Picture(100,100,32)
m=New Picture(100,100,32)
' ... draw something in a and b
call BlendPicturesWithMaskMBS(c,a,b,m,0,0,a.width,a.height)

The mask defines how much from one picture is used.

Reason for returning false:
- One of the pictures used is nil.
- The result picture must be a 24 bit or a 32 bit picture.
- The three parameter pictures have not the same size as the others.

Some examples using this global method:

BlendPicturesWithMaskMBS(source as picture, dest as picture, mask as picture) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Graphics & Pictures MBS Picture Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Blends two pictures.
Example
dim a,b,c,m as picture

a=New Picture(100,100,32)
b=New Picture(100,100,32)
m=New Picture(100,100,32)
' ... draw something in a and b
c=BlendPicturesWithMaskMBS(a,b,m)

The mask defines how much from one picture is used.

Reason for returning false:
- One of the three pictures used is nil.
- One of the pictures is not a 32bit bitmap picture.
- The three parameter pictures have not the same size as the others.

Some examples using this global method:

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


The biggest plugin in space...