android - How to combine two opaque bitmaps into one with alpha channel? -
i have png file transparency i'm using opengl texture. load in bitmap
bitmapfactory.decoderesource
, upload gpu.
the png file quite big , in order cut down on apk size, i'm trying use 2 jpgs instead--one rgb data, , other alpha channel (grayscale).
how combine 2 jpgs in 1 bitmap
object alpha channel? tried loading alpha channel bitmap.config.alpha_8
, drawing them on top of each other using canvas
no luck far.
have @ kevin dion's answer this related question. explains how combine 4 separate images (r, g, b , channels) should able adapt work 2 images.
Comments
Post a Comment