Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create a transparent Mat in Android

Hi,

I'm trying to create a transparent mat but somehow the alpha channel doesn't work right. This is what I'm doing right now:

Mat retFrame = new Mat(rows, cols, CvType.CV_8UC3, new Scalar(255,255, 255, 0));

I tried it with all kinds of alpha values Thanks!