Questions tagged [drawbitmap]
68 questions
19
votes
2 answers
How to prevent Android's drawBitmap from only drawing black images?
As per the original question, The end result is a rounded-rect png in an ImageView with a natural looking drop shadow.
I have the shadow working, but when it draws, it makes the entire image black.
How can I prevent the original image (definitely…

coneybeare
- 33,113
- 21
- 131
- 183
13
votes
2 answers
How to Draw Portion of Bitmap via Canvas DrawBitmap
I have an
:
FrameLayout(marked with red)
Source ImageView(black)
Object(imageview) with OnTouchListener (orange)
Via Object with OnTouchListener,i want to show a portion of bitmap,that are filled on imageview(source imageview).
So it's…

XTL
- 1,452
- 2
- 17
- 40
8
votes
2 answers
How can i merge two bitmap one over another at selected point on the first image in android?
How can i merge two different images as one. Also i need to merge the second image at a particular point on the first image. Is it posible in android??

Droid_Dev
- 1,162
- 1
- 8
- 25
3
votes
1 answer
How to drawBitmap on display in Android
I'm developing and Android application, but I have some doubts about the
feasibility of my project.
I have to implement a custom layout composed from a ImageView that show an image, in particular a VectorDrawable.
Overlapping the ImageView there is…

Mattia
- 1,057
- 2
- 17
- 33
3
votes
2 answers
Android drawBitmap position parameters
I am new to android graphic programming.
I want to put a bitmap in the centre of my canvas. Hence, i use :
public void onDraw(Canvas canvas) {
float canvasx = (float) canvas.getWidth();
float canvasy = (float) canvas.getHeight();
Then i…

JrL
- 221
- 1
- 7
- 19
2
votes
2 answers
Show portion of Bitmap image on canvas in Android
I am trying to build a Magnify tool in my Android app. For this, I have an ImageView, which I converted to Bitmap (with some zoom/scale factor).
imageView.setDrawingCacheEnabled(true);
Bitmap drawingCache = imageView.getDrawingCache(true);
Matrix…

user1094717
- 31
- 1
- 4
2
votes
0 answers
android drawBitmap RBG_888
I'd like to blit a 24bit bitmap.
Of course I can use the ARGB_8888 bitmap mode, but I don't care about the alpha channel.
My bitmap is a background.
So I'd like to inprove performance by indicate to android that there is no reason to use alpha…

webshaker
- 467
- 6
- 17
2
votes
1 answer
Saving a high-resolution bitmap from vectors in Adobe Animate
Is there a way to let the player save a high-resolution image of the game, while still maintaining all effects? For example, I have glow filters set to 2px. When I use the regular drawBitmap, everything is pixellated and the filters don't look…

ola.rogula
- 307
- 1
- 9
2
votes
2 answers
canvas.drawbitmap not work sometimes
I used canvas.drawbitmap(bitmap,matrix,paint) to draw the bitmap on canvas.
yes, it worked most of the time! But sometimes it did not work. There was nothing on canvas after I called the method canvas.drawbitmap();
So, what`s wrong?
1: I chose a…

kim
- 41
- 3
2
votes
0 answers
Faster way of displaying offscreen bitmap using android/java
I have started to learn android and java using the android studio beta. As a first simple test app I am trying to get a basic Mandelbrot renderer working. I have gotten it to display, but now I want it faster. Can anyone give advice on the…

Some1Else
- 715
- 11
- 26
2
votes
1 answer
drawBitmap() of canvas gives white image on parent image android
I'm newbie with canvas.
I'm trying to draw child bitmap on parent bitmap using canvas.drawbitmap(childbitmap,matrix,point) method. I'm getting number of bitmaps using loop and trying to overlay image on all that bitmaps But somehow the output which…

Jai
- 1,974
- 2
- 22
- 42
2
votes
1 answer
canvas.drawBitmap( bitmap, null, RectF, null ) not drawing
I'm trying to get a bitmap image to be drawn on my canvas in my android project. I've been at it for over two days now and just can't seem to figure it out. I attached the code where the function's being called.
private void drawLogo(Canvas…
user2267730
2
votes
2 answers
Drawing part of image in Direct2D
Since GDI+ is pretty (ridiculously) slow, I've decided to migrate to Direct2D. I've looked up many topics on many forums (including this one), but with no success (it may also be caused by the fact that's pretty late) and the Direct2D documentation…

Iosif Murariu
- 2,019
- 1
- 21
- 27
2
votes
2 answers
Android onDraw loop
I've set global variables x,y in the Activity class.
I start a thread "t0" that continually update globals x and y.
I have onDraw pseudocode as follows (all on the UI thread):-
View.onDraw(){
if (x,y changed value) {
x0=x;
…

SteJav
- 495
- 4
- 11
2
votes
2 answers
Android - canvas drawBitmap and different resolutions?
I have this issue with drawing for example two bitmaps on canvas(it's for the live wallpaper). Thing is that small bitmap that is at front should be placed exactly in right place of the background bitmap. It looks good on emulator of course (let's…

Lucass
- 147
- 3
- 12