Platforms to show: All Mac Windows Linux Cross-Platform

BlendPicturesMBS(result as picture, source as picture, sourcepercent as Double, dest as picture, destpercent as Double, 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 as picture

a=New Picture(100,100,32)
b=New Picture(100,100,32)
' ... draw something in a and b
c=New Picture(100,100,32)
call BlendPicturesMBS(c, a,0.5,b,0.5, 0, 0, 100, 100)

Percent is in range from 0 to 1. Values out of this range may work, but you get strange results.

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 two parameter pictures have not the same size as the others.

Some examples using this global method:

BlendPicturesMBS(source as picture, sourcepercent as Double, dest as picture, destpercent as Double) 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 as picture

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

Percent is in range from 0 to 1. Values out of this range may work, but you get strange results.

Reason for returning nil:
- One of the two pictures used is nil.
- One of the pictures is not a 32bit bitmap picture.
- The two 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...