Skip to content
Advertisement

Tag: canvas

how to draw prespctive image in android canvas

i have searched about how to draw prespctive image in canvas like in the picture but i dont find anything thing. if its not possible using canvas, how i can make something like it? i find this:- but this cut the image. Answer This is possible by magic method of canvas drawBitmapMesh. This is example from my project:

Processing – Resize canvas based on jpg dimensions

I have a basic program where stock images form the background for a larger program – but a number of the images have slightly different sizes compared to each other. My initial code loads up the background image and tries to set the canvas size based on the image dimensions: I get ‘IllegalStateException’ error bg.width and bg.height are 806 and

JavaFX – save canvas to png file

I’ve created a simple drawing program which just basically prints pictures on a canvas by choosing from 3 pictures and then the user can save the image that he created and open a previous image , the program works perfectly good , but I’m facing a problem : when I save the image , the image is not being saved

JavaFX – Resize Canvas when screen is resized

I’m working on the GUI of my level editor that I built in JavaFX, and I want to be able to resize the canvas object to the new split pane dimensions. It seems that everything I’ve tried has failed. This includes passing the pane object in and using its width directly, using window size listeners and binding the width and

Advertisement