Questions tagged [paint]

The act of displaying a GUI component on a screen output device

Painting is the act of displaying a GUI component on a screen output device, and is responsible for visually representing the component object to the user. For example, displaying a Button object should paint a 'button' shape on the screen, with the text or icon that relates to the button.

2808 questions
0
votes
3 answers

Why does paint(Graphics g) work, while paintComponent(Graphics g) does not?

I am very much a noob when it comes to swing. So far, all of my knowledge comes from YouTube and Stack Overflow. I am trying to make an interactive 5x5 board, with a random image in every spot, and a transparent JLabel on every image. I have a 2D…
0
votes
0 answers

Quarter Circle does not fit my initial circle Flutter Painter

I'm trying to make a loading icon for my loading screen using CustomPaint widget. Unfortunally, it doesn't work as expected... My quarter circle does not fit in my primary circle, here's a screen of it : I don't understand why it is doing…
Zouglou
  • 89
  • 1
  • 11
0
votes
0 answers

Flutter paint(): is this legit? Rendering Renderobject in different context

I try to render the child of a listitem (somewhere up) to a different place (widget) in the tree; In the approach below, BlendMask is the "target" widget that checks for and paints "source" widgets that got themself an GlobalKey which is stored in…
user3249027
  • 545
  • 5
  • 17
0
votes
1 answer

how can I make animation in flutter when filling specific (path)?

I want to make like this animation in flutter using canvas and paths example of animation
0
votes
0 answers

Why is JPanel still painted?

I am actually trying to create a JPanel, containing a bunch of ui elements for the user to manipulate the application. This panel is placed on top of Java3D scene. Therefore, I wanted the background of this JPanel to be transparent. Neither…
Alex
  • 1,387
  • 2
  • 9
  • 14
0
votes
2 answers

Apple GLPaint modification problem

I followed Apple's GLPaint paint application and tried to modify it.. In sample code they have used simple particle.png to draw. My question is i want to use some other image of my choice for drawing. At first sight it seems very easy to replace…
rohan-patel
  • 5,772
  • 5
  • 45
  • 68
0
votes
0 answers

I am making a paint application using kotlin. I wanted to erase my last path using an undo button. How can I do that?

I was trying to make a paint app through which users can paint and draw for fun. I wanted to erase a drawing partially by using the undo button in my app. The floating action button I have used erases the whole drawing, but I want only that last…
0
votes
1 answer

Flutter custom painter line like word search

I try to make a word game for test purpose. I already make the puzzle using listview builder. But didnot able to make the selectable lines.
HasanToufiqAhamed
  • 751
  • 1
  • 5
  • 17
0
votes
1 answer

How to draw a circuler path by swiping without draw edges?

How to draw a circler path by swiping, it's draw with edges. I wanted to draw path with smooth edges. this is my code. this.mPaint = new Paint(); this.mPaint.setStyle(Paint.Style.STROKE); …
EAS
  • 366
  • 2
  • 18
0
votes
2 answers

paint(Graphics g) method of java.awt.Label derived class not called

The curriculum for my son's school still includes the students learning Java AWT. Even though I don't think it is the best approach, I can't change it, because it is set by the Ministry of Education. Anyway, I try to help my son with his exercises,…
Alex
  • 1,387
  • 2
  • 9
  • 14
0
votes
1 answer

How to hide the selection rectangle/dotted lines in a Qt QListView or QListWidget?

In my interface, I would like to not display the dotted lines/rectangle around the currently selected item. I read online that there was no way to do this with stylesheets, and the best way was to create a new class to override the paint method, as…
0
votes
3 answers

java drawstring arraylist

If I am using the drawString(String, Int, Int) command in java. How can I store / call different graphics that have been stored in an ArrayList? So, for example, ArrayList list = new ArrayList; int pos = 0; for (int i = 0;…
Ricco
  • 775
  • 5
  • 11
  • 19
0
votes
0 answers

How create Paint or UIColor from Brush value in iOS

I'm developing MAUI project and having SelectionBackground API (in Brush type) and have to set this color to native view's (UIView) background (which is UIColor type) or set to IView's background (which is Paint type). So i need to convert that…
Prithiv
  • 504
  • 5
  • 20
0
votes
0 answers

How can I add a draggable Polygon function in my flutter app

I have been trying to add a draggable polygon. The process is that User gives me length of 4 sides and then a shape is generated which is placed on canvas. He should be able to drag the points of polygon. In flutter, free hand drawing app can be…
0
votes
0 answers

Flutter: How to wipe/erase/reset entire CustomPaint canvas

I have real-time data values painted as a graph from left to right in flutter. Its a lot of source data but very simple: Vertical lines canvas.drawLine(from here, to here) from a realtime list of doubles drawing from left to right across the…
1 2 3
99
100