canvas

Come disegnare linee verticali come traccia musicale progressbar usando Canvas in Javascript

Sto cercando di creare un lettore audio personalizzato. Sto usando HtmlAudioElement per quello. Sono riuscito a riprodurre, m ... isogno di agganciare quel valore da qualche parte nella Tela in modo da poter disegnare quelle linee. Grazie in anticipo:)

Java (Android) Inserisci icona su tela

Quindi ho una vista personalizzata, dove disegno su tela. Vorrei aggiungere un'icona o un'immagine su tela. Ho provato con ... /bitmap con icona non ridimensionata e riempire lo sfondo con un po ' di colore? Qualcuno può indicarmi la giusta direzione?

Come aumentare la velocità di disegno delle linee su tela in Javafx

Sto facendo un'applicazione di vernice di base in Javafx. E mi chiedo se c'è un modo per aumentare la velocità di disegno del ... nto del mouseListener o qualcos'altro interamente, o tutti insieme? Sarebbe davvero apprezzare alcuni suggerimenti a questo.

La classe Java Canvas non dipinge

Volevo scrivere un programma, che controlla quale RadioButton è selezionato (cerchio, cerchio pieno o rettangolo). Quindi l'u ... known Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

Come faccio a disegnare un bordo su una tela in Java, utilizzando un oggetto dalla classe Dimension?

Per un compito avevo bisogno di disegnare un bordo attorno a una tela 500x600 su 20px dai lati, quindi l'ho fatto manualmente ... (myCanvas.getHeight() - 20), 20) Ma come faccio? Ogni volta che ottengo: impossibile trovare il metodo symbol getHeight ()

Java-Come flashare la finestra JPanel

Ho una finestra JPanel con alcune cose disegnate su di essa. Sto cercando di capire come posso far lampeggiare lo schermo, co ... base ad alcune variabili. Vorrei solo che lo schermo lampeggiasse ad un certo punto e poi tornasse alla normalità. Grazie!

Implementazione delle aree di disegno nelle schede in JavaFX

Vorrei aggiungere un'area di disegno alle mie schede in JavaFX. Sono nuovo nel campo e ho provato ad aggiungere una tela a og ... i e funzionano finché non uso la tela. Dove sto andando male. Dovrei usare un metodo diverso per implementare ciò che voglio?

Java, JFrame trasparente sotto tela

Sto cercando di implementare un JFrame completamente transperente che trasporta un oggetto Canvas. Ho provato a rendere trasp ... /////// g.dispose(); bs.show(); } Quando setBackground viene commentato : Quando setBackground non è commentato :

Java Graphics setColor non funziona

Sto cercando di implementare una trama di un Julia Set usando un Canvas all'interno di un JFrame. Per qualche ragione sembra ... dering is done, draw background image to on screen graphics cScreenGraphics.drawImage(m_cBackGroundImage, 0, 0, null); }

Visualizzazione della struttura ad albero gerarchica su Canvas Java SWT Draw2d

Ho una struttura dati ad albero che memorizza le informazioni. Come faccio a capire il posizionamento corretto di ciascun nod ... di simile in mente, da visualizzare sulla tela. A / \ B C / | \ \ D E F G \ H

Function graph in JavaScript

You need to use JavaScript to plot the function y = х^2 + (е^2x)/(х-2) where e is the exponent (in power 2*x), x = -5 and in ... o up to 1). I ask for help, or at least a link to a resource that explains how this can be done. Thanks for your attention.

JavaScript+Canvas: Plot a function graph

Create a web page displaying the graph of the function y=ax^2+bx+c On the page, we set the values of the variables a, b,c and ... ;canvas></canvas> This image is taken from my course and shows how this task should look like in the final

Java-Drawing with Canvas

How do I set parameters to Canvas functions from another class? Let's say there is a Picture class: static class Picture ext ... t, how do I set, for example, the color of what is being drawn? It is not clear how to apply setColor() to the created object

JavaFX. Caption on a scaled image

I'm trying to figure out how to apply text to an image. The situation is as follows: there is a javafx application, the mai ... next { -fx-pref-width: 135px; -fx-pref-height: 25px; -fx-font-family: Arial; -fx-font-size: 12px; -fx-text-fill: #171717; }

Java. Canvas. JFrame

The code below draws a line, each second a new one. How can a new line be added to the old one?That is, I want to see twenty ... (Math.random() * 100); MyCanvas.x2 = (int)(Math.random() * 100); canvas.repaint(); } } }

Is there a native way to cut an image in javascript?

Interested in whether there is a way to cut an image (for example, cut 2 different squares from one photo) in pure javascript ... ut at the front. P.P.S. Implemented on canvas. Here example http://in-web.h1n.ru/projects/photowalls/ . Only front, only js

How to work with a rectangular coordinate system in JavaScript (canvas)

Hello everyone I drew using JavaScript canvas, two rectangles 400px wide and 200px high, But the problem is that the canvas w ... with the screen coordinate system, and I need to do the same but only use a rectangular coordinate system, how do I do this?

Javascript how do I move a canvas element along a sinusoid?

Hello, I am interested in the question of how, for example, a circle drawn in canvas can be made to move along the trajectory of a sinusoid. Thank you in advance.