Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

bitmap rotate 90 deg

Matrix matrix = new Matrix();

matrix.postRotate(90);

Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmapOrg, width, height, true);

Bitmap rotatedBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix, true);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bitmap #rotate #deg
ADD COMMENT
Topic
Name
6+8 =