Android-canvas Questions
Ad
Apply custom mask to an ImageView
I want to adust my imageview like this:
How do I draw android.graphics.drawable.Icon on canvas?
I'm startled. i was sure icon will behave an any other drawable. but i don't see any draw or setbounds methods. i can't find any examples of
Draw with canvas
How to use canvas to draw a selected field of transparent color with blue background?
How can I draw more Rectangles in a raw on a Canvas?
I was doing an test app for developing in the future a more complex one, and i'm asking myself if i can draw more rectangles on a canvas (maybe
Draw StaticLayout text including HTML code in an Android canvas
Let a multiline html text like this one: <div style="color: red;"><b>foo</b></div>. it can be multiline
Paint attributes are not working on Canvas
I am trying to create the white impact font with black outline (aka "the meme font"). i applied the logic for both texts that are drawn on canvas
Paint attributes do not work when applied twice
I am trying to create a custom impact font with white color and black outline (aka the "meme font"). i have 2 texts on both ends of the canvas
Canvas clipOutRect compatibility in AndroidX
I recently came across the deprecation of cliprect(rect,region.op), which i would like to use with difference. this was
How do find out where the app saved my mutable bitmap
I'm working on a meme generator. right now, i'm trying upload a photo from my device, to put captions on the photo through canvas
setting the image according to the grid
Currently i am making custom view which is used for the cropping the image the view is basically a grid which defines the crop area like
Ad
Android canvas doesn't draw the text on my bitmap
I'm trying to get the text input from the user and draw it on the image using canvas but the image is saved without what was supposed
How to add border to bitmap image content instead of its background by using Canvas?
The feature of a bitmap image is that it has a transparent background and usually has a rectangular shape, so
how to place a bitmap image(pin) in center of the canvas circle(blue circle)?
int x = 1460; int y = 800; bitmapfactory.options myoptions = new bitmapfactory.options(); myoptions.indither = true;
View Select a background image and draw on it
I have created a class that extends view. i am drawing on it. it works as expected. now i wanna select an image from gallery and set
Fitting Bitmap to Screen In SomeView Class onDrawBitmap method
Firstly its not just about scaling bitmap to all screen. it's not duplicate. i searched for it. i have a class named someview and i'm
How disposable are Canvas objects?
Imagine i have a bitmap and i need to draw on it. for that i need to wrap it in a canvas. can i wrap it as follows: bitmap
How to Draw Rounded Rectangle in API Level below 21 on a Canvas
I am creating a custom view by extending android.view.view. now, i need to draw a rounded rectangle on api level below 21.
Getting imageView null reference error - why so?
I'am drawing a re-sizeable rectangle on a image view. the view class to draw the custom re-sizeable rectangle view: public
how to correctly compare coordinates?
I have custom view with drawn text and with user drawn line. text have some (x,y) coordinates and line have it as well (as soon as user
Invert the canvas' drawText()
Been looking for a way to invert the text when i draw the texts on my canvas object. i could not find any related problem here in so.
How to draw a text at the corner of a bitmap android
I have a bitmap and i am trying to draw a text over the bitmap at the top right corner. but at the first place i am not able to draw any text over
Ad
how to put text on image bitmap at bottom?
What i want: i want to add text at bottom of a image which i have chose from either gallery or camera. original
Android Zoomable endless rings
I am trying to create an endless zoomable rings, something like this -
Rendering Bitmap based on Views position in parent
I'm trying to make a simple image editor. at the beginning i've thought that it'll be a good idea to simply save view state as bitmap but, as it
Canvas.drawText() doesn't render large emojis on Android
Canvas.drawtext() doesn't render emojis above a certain font size on android. correct render at somewhere
Android Canvas change color of intersection of shapes and texts
I'm trying to change color of intersection of shapes and text using canvas.
Custom View not rendering
This is my first attempt at creating custom views in android. however, i seem to have missed something and don't know how to debug the issue. i
Converting image to 2d array gets only top left quadrant
I am making a procedural animation in android that is supposed to just take a 720x720 image, convert in into a 2d array of colors and then draw
convert drawable xml containing a gradient to bitmap
I want to apply a gradient to a bitmap. so far i'm using this technique. here is my code in the oncreate method of mainactivity.class.
Canvas added to activity_main.xml crashes my app
My problem: i have been trying to make an app where a ball bounces around based on orientation change. i had some problems with that so i
Why is the onDraw Not Being Called in Custom View for Android?
I am developing in android canvas. but the ondraw() has not called after invalidate(); in
Round corners ItemDecoration
I have a recyclerview with gridlayoutmanager that contains items with various viewtypes (and
Ad
Blog Categories
Ad