Where could I find information about setBlendMode

Since API level 4.0.0, there are new features like setBlendMode().

In the core topics > Graphics It is written

You can also set the blend mode with setBlendMode(). By default, the system will blend your color with whatever is being drawn over. However, you can use BLEND_MODE_NO_BLEND to set the color and alpha of a BufferedBitmap directly. You can also use BLEND_MODE_ADDITION to have your blend added to the channels being drawn to.

In addition to colors, you can now also provide a BitmapTexture. This allows a primitive to be filled by a bitmap and opens up many new drawing possibilities.

Do you know where we can find more information about this feature.

Thanks in advanced,

Pascal

  • I agree. the information is extremely sketchy.  The Garmin documentation mentions BLEND_MODE_ADDITION, but that constant seems invalid. setStroke() affects drawing primitives like lines or circles.  It says setBlendMode() is for "Set blend mode for drawing."   But for drawing what?