Questions tagged [paint]
The act of displaying a GUI component on a screen output device
2,775
questions
0
votes
0
answers
18
views
How to create a Paint app with Zoom, Flutter
I'm programming a Flutter App and in which you can paint. I've done the basics in the meantime. But now I want that you can zoom in the area where you can paint. So that one has an even larger area to ...
0
votes
2
answers
31
views
How to create custom background for text and emoji in flutter?
I'm looking to create text with a background like this
I have referred to this and this to come up with the following
As you can see, the background behind the emoji is larger. Is there a way to ...
-4
votes
0
answers
41
views
Flutter custom shapes
How to draw this curved shape in flutter ?
0
votes
1
answer
28
views
What is wrong with my code. I am unable to draw on the screen
I have checked my code several times and don't know where is it going wrong. i am trying to build a drawing app and after doing all this code I am unable to get any output. Not able to draw on the ...
0
votes
0
answers
49
views
How to draw a list of images with circular border in dart canvas?
I need to draw a list of images with canvas, and I need that each image has a circular border:
expected:
but what I implemented is:
my code is:
for (int i = 0; i < participants.length; i++) {
...
0
votes
0
answers
43
views
vb.net - paint on every white pixel
I have a lot of pictures (about 10.000) and would need to paint with Pink on every pixel that is white.
I found multiple threads on getting the color of a pixel, but they require me to go over every ...
-1
votes
1
answer
39
views
C# Drawing (paint) [closed]
I'm developing an application which is basically drawing geo data.
I have DataSets implemented which holds all sorts of data including coordinates.
I'm using conversion from cartesian to screen in ...
0
votes
0
answers
45
views
seperat shape painted by 0 and 1 array
I have text file contain array of 0s and 1s.
Its width is 64 and I want to convert it to 32 pixel but keep shape painted by it is visible.
I tried to take one and delete one.
But that makes shape not ...
-3
votes
1
answer
49
views
Zybook - paint challenge python [closed]
Scenario: Finish the program to compute how many gallons of paint are needed to cover the given square feet of walls. Assume 1 gallon can cover 350.0 square feet. So gallons = the square feet divided ...
0
votes
0
answers
30
views
Any way to create polygons using lines with the finger?
I would like to know if there is any blog or package or video that has an example similar to what I show in the following images:
With the finger i want to create every point and move it wherever you ...
0
votes
0
answers
29
views
flutter) I want to know how to drag & draw shapes through Custom Paint
I'm making a whiteboard app.
I learned how to draw lines using GestureDetector() and CustomPaint(). Now I'm going to draw the shapes, but I don't know how to draw the location and size of the shape by ...
0
votes
0
answers
41
views
How to prevent Eraser from Removing Bitmap?
How to prevent Eraser from Removing Bitmap or Paint Must Draw in Back Side of Image As per Attach Image & My code is as below in Android Java
In Paint View - onDraw my code is as Below
protected ...
0
votes
1
answer
27
views
Repainting in while loop
I know that this question has been asked many times in a similar way on this platform. I've already spent a few hours trying the answers on my code (Threats and much more), but nothing has worked for ...
0
votes
1
answer
27
views
Drawing with functions on JFrame or JPanel java
I wanted to know if it is possible to use/make a function in another Class to draw an image/oval and then call it in the paint public void in our main Class.
If I have
public class Trydraw{
...
0
votes
0
answers
14
views
Can python multiprocessing run two same fuctions that makes screen outputs
Hello I want to run a function that puts some random dots to paint but I want to make this thing for several times so ı need a multiprocessor but I doubt about it because of that, I use pyautogui to ...
0
votes
1
answer
36
views
How to plot many spheres and points with Python
I have a file which haves coordinates x,y,z and radius r of many spheres. I want to plot with python theses spheres and the points (x,y,z). It doesn't have to be in 3D, it is good if it is in 2D (...
0
votes
0
answers
21
views
How to bounce a circle drawn with JFrame graphics context on JFrame click?
I have managed to draw a circle on a JFrame object I have in my Netbeans IDE. How can I make the circle bounce when I click my JFrame. I need help making the circle move down and as soon as it touches ...
0
votes
0
answers
34
views
JPanel, collisions and threads
I'm trying to develop a game, it's one of my assignments. In this game, I have several ball draw using pain and I have 3 panels. One plays the role of paddle and 2 others play the roles of obstacles. ...
0
votes
1
answer
72
views
When I draw with CustomPaint after a while it lags #103968
I know there are other issues related to this problem, I found them, I read them and I still could not solve my problem.
If you could help me by viewing the issue from GitHub, since there I could see ...
0
votes
1
answer
23
views
how to update panel with repaint()?
I have a panel-class:
public class MyPanel extends JPanel {
Color myColor = Color.BLUE;
String string = "Hello";
public void update(String newString) {
myColor = ...
0
votes
1
answer
56
views
repaint() not updating panel?
I have a class (not public, so you probably do not know the class) which is drawing a picture with picture.draw(g2). With picture.changeToDry() I can change the picture. It works fine, when I call the ...
0
votes
2
answers
87
views
Issues my method to get a 2D circle to move in a circle
OBS! Changed as part of the question has been answered.
My math has been fixed due to your help and input, the same with StackOverflowError but I still can get my head around how to make the circle ...
4
votes
1
answer
130
views
Painting difuse texture in javafx?
Is there a way to paint a 3d texture on a 3d surface like blender ?
0
votes
0
answers
23
views
Change canvas size
I'm working on my first mobile app (i use java and android studio) and its gonna generate pascal's triangle (wikipedia page) and show it. I know how to paint stuff but i don't know how to change a ...
0
votes
1
answer
33
views
How to achieve non-destructive painting in Java?
I want to plot many sinusoids with different frequencies on a panel, but because painting is destructive, I cannot achieve this. I can only see the last sinusoid plotted.
In the code, the ...
0
votes
0
answers
30
views
Paint measureText returns wrong value when monospace font applied in that string: Android
Im using measureText to get width of particular string. it is working fine when spannable string has no Typeface. but when spannable string has Typeface Monospace applied, it returns wrong width. i ...
0
votes
1
answer
45
views
Java -Repaint() not working when i want to call it
I wonder why the repiant() method is not working as intended. My Code:
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java....
0
votes
0
answers
11
views
How to have different color brushes using multi touch?
I am trying to make it so each finger on the screen has a different color as it paints its path. I am using pointers to create the path and toyed with assigning the pointer IDs a different color per ...
0
votes
1
answer
25
views
Jlabels flickering or randomly not showing
I have a problem with a Java 2d game I'm developing.
Some of the game screen elements are drawn in a Jpanel overriding the paint() method and some other elements are Jlabels added to that panel.
The ...
0
votes
0
answers
18
views
How to increase the image size in paint
Is it possible to increase the 40KB jpeg to 40 MB?
If have tried by adding multiple images to paint
It was not working
Please help me to resolve
Then I want to create a pdf which should have more than ...
0
votes
1
answer
67
views
CustomPaint Erase shape on hit with fade effect
I try to erase my circle when I click on the canva. I would like to make it appeat again on a second click. Atm I have this:
class FadeEffect extends StatefulWidget {
const FadeEffect({Key? key}) : ...
0
votes
0
answers
25
views
Java Exception throw creates an infinite loop
I have established a do-while loop to verify user input is valid. If a 0 or negative number is entered, the Exception is thrown and the catch prints out. However, if a string is entered (i.e., ...
0
votes
1
answer
197
views
C# create crosshair overlay for video game
(I know this is very bootleg) I've currently made a FORM that acts as an overlay and I'm using panels as the crosshair however whenever I try to put the panels in front of the game the panels take ...
0
votes
0
answers
62
views
How to draw line with corner radius box using canvas
I want to draw line of box with box corner radius.
Expected Output
But what i get
Code
@Override
protected void onDraw(Canvas canvas) {
if (bytes != null) {
int[] ...
0
votes
0
answers
19
views
Flutter, paint free hand point header position got misplaced
I am developing a flutter application. In that am using Paint to draw lines. In free hand line the point header is correctly displaying when we draw a straight line. But when we rotate the line, the ...
0
votes
0
answers
45
views
Save Drawings on my Image/Photo (Flutter)
I need my user to take a photo, then draw over it, and save the photo as a NEW picture which merge both (photo and drawing). Drawing is working, but how to get/save the new image with both ?
class ...
0
votes
0
answers
34
views
How to insert an image in a paint method
I try to make a game in android studio (for an univeristy project) and I have some problems.
The game in question is a maze game type. I create the maze and the player, it work but I would to insert ...
0
votes
1
answer
67
views
How to display a button in each cell of a QTableWidget's column so that it removes its corresponding row when clicked?
I want to display a button in each cell of a QTableWidget's column. Each button, when clicked, must remove its corresponding row in the table.
To do so, I created a RemoveRowDelegate class with the ...
1
vote
1
answer
279
views
Make p5js project run faster
I made a project called "pixel paint" by javascript with p5js library, but when I run it, that project ran too slow. I don't know why and how to make it run faster. And here is my code:
...
0
votes
0
answers
56
views
How to change arrow point header in paint flutter?
I need to change the arrow head with double line.
0
votes
0
answers
124
views
Win32 - Child window border issues when moving
I'm trying to create splitter 'windows' and have a provisional splitter where I'm using WM_NCHITTEST to return HTCAPTION and subsequently restricting axial movement by fixing the X or Y coordinates in ...
0
votes
0
answers
73
views
Draw paint inside different shapes using painter library flutter
I'm trying to draw a painting inside the drawn shape (it could be anything like a rectangle, circle, etc), using Flutter's painter library. The paint is drawing perfectly outside the area of the shape....
0
votes
0
answers
23
views
Is there a way to fully ignoreRepaint in Swing?
I'm using setIgnoreRepaint(true) on my JFrame with Active Rendering and a BufferStrategy. When I disable the portion of code that is calling contentPane.repaintAll() from the EDT withing my game loop, ...
0
votes
0
answers
12
views
How to draw such picture digitally so I can use in my presentations?
[![enter image description here][1]][1]
It is the picture form the website but I want to draw such picture for my project.
[1]: https://i.stack.imgur.com/fCoIO.jpg
0
votes
0
answers
43
views
How to Draw Outer border over image bitmap?
I am using 2 bitmaps, One for, Image and second for, Border.
For Outer Border I used, matrix and paint, to Draw Storked bitmap into, onDraw function.
I used below code and I got this output
if (...
0
votes
1
answer
44
views
Can I use 2d graphics as background for components in java?
can someone help me to know why the whole jtextfield is not visible when adding it to a jpanel that has a painted image icon? here is my code for the sample. thanks :)
without typing anything on it, ...
0
votes
1
answer
262
views
Drawing a custom line graph with Paint on Android
I'm trying to draw a line graph using Canvas and Paint on an Android App
First I generate some data points with generateData() which creates random values for the Y data point and i times 50 for the X ...
0
votes
1
answer
67
views
Update a Control’s Appearance in OnPaint Before it is Made Visible
I have a form with controls (Buttons, Panels, and UserControls) that have modifications to their appearances such as rounded corners. I change the visibility property of these controls depending on ...
1
vote
1
answer
277
views
Where did Firefox's "Paint Flashing Tool" go (in Firefox ~96)?
The "paint flashing" tool in Firefox seems to have vanished.
Both the docs and this answer are outdated. I'm running Firefox 96.0.2 (and Firefox Developer Edition 97.0b7) on a mac, and ...
0
votes
2
answers
272
views
is it possible to give gradient blur effect in Custom paint in Flutter like below picture?
I am coding the below output and i get the design i want but not able to get the blur effect inside the canvas.
This is the output i am trying to build,
This is what i have tried,
Here is the Code,
...