android - draw bitmap on canvas with original dimension -
I have to draw a bitmap on my canvas, but it is not displayed with the original size
< / P>
This is my code:
imageview image = (image view) searchVBIID (RID image view); Bitmap BMP1 = BitmapFranet Decondersource (getResources (), orrvable.IC_ Launcher); Bitmap BMP = bitmap.credbitmap (320, 382, bitmap config.argb_8888); Svg svg = SVGParser.getSVGFromResource (getResources (), R.Arkart); Canvas canvins = new canvas (BMP); Canv.drawBitmap (bmp110,10, faucet); Drawable [] layers = new drawback [2]; Layers [0] = svg.createPictureDrawable (); Bitmap Drable Eligible = new Bitmapdroub (getResources (), BMP); Layers [1] = drawables; LayerDrawable Layer = New LayerDrawable (Layers); Image.setImageDrawable (layerDrawable);
thnx
and if You use something like this:
bitmap resizedbitmap = bitmap .createScaledBitmap (bmp1, image.getWidth), image.getHeight (), true); You can
>
Comments
Post a Comment