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
1 answer

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 problem is that the elements drawn in the…
sottaceto
  • 3
  • 2
0
votes
0 answers

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 25MB
0
votes
1 answer

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}) : super(key: key); @override …
Jordaninho
  • 151
  • 1
  • 8
0
votes
1 answer

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 control and my mouse hovers over the panel and…
James L
  • 19
  • 5
0
votes
0 answers

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[] gradientColors = new int[]{ …
Ali
  • 3,346
  • 4
  • 21
  • 56
0
votes
1 answer

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 button as editor and used the…
Skryge
  • 81
  • 1
  • 9
0
votes
0 answers

How to change arrow point header in paint flutter?

I need to change the arrow head with double line.
0
votes
0 answers

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 WM_WINDOWPOSCHANING. The splitter is a child of…
0
votes
0 answers

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, nothing get's drawn anymore which is expected,…
Eorix
  • 81
  • 8
0
votes
1 answer

RichTextBox text blinking

does someone know, how to make various parts of RichTextBox text to blink in .NET on Winforms? Or maybe this is already done?(Google gave no help) Thank you
bikt
  • 173
  • 1
  • 2
  • 14
0
votes
0 answers

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 (drawBorder == 1) { val mCurrentScale =…
0
votes
1 answer

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, only part of it is visible. import…
Bjay
  • 1
0
votes
1 answer

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 data point. I expected each X point to be…
0
votes
1 answer

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 inputs from the user. The problem is when I make…
0
votes
2 answers

Why is Android Paint strokeWidth default value suddenly different?

Background I have an app in the Google Play store built in Kotlin. It currently displays a grid that the user draws her password on. Here's a snapshot of the grid as it was previously drawn with the previous default paint.strokeWidth. The grey…
raddevus
  • 8,142
  • 7
  • 66
  • 87
1 2 3
99
100