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
0 answers

I can't seems to be able to create a thumb up and thumb down path in flutter

Pls can anyone help me out pls, I want to draw custom thumb up and thumb down in flutter. Thanks I've not tried anything yet, hope anyone can help. Thanks
Olatuneday
  • 23
  • 7
0
votes
3 answers

How to fix an MFC Painting Glitch?

I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard…
Ali Parr
  • 4,737
  • 3
  • 31
  • 35
0
votes
0 answers

vb.net : Is there a way, when I click a button, an image should draw to the form with an opacity and should be able to undo also?

I want to paint an image from imagelist or picturebox to form location with opacity ie:%50. for example: when I click the button, a transparent image should paint/drawn on the form with certain opacity. when click again should be undo. I saw how to…
AkKi
  • 11
  • 2
0
votes
1 answer

Is there a way in Android to draw a hollow Path on Canvas?

I'm working on an APP in Android and needs to draw things on a Canvas. I want to draw a Path that is hollow, for example something like this image below. View Image The Path may contains lines, arcs, bezier curves, etc. Is there a way for me to…
zyy
  • 1
0
votes
1 answer

flutter draw linechart with lineargradient

I'm trying to draw a gradient in LineChart, but I had a problem. I can't draw the gradation as I thought. Please help me. I Want.. enter image description here but chart is.. enter image description here This is my Code. @override void…
starry
  • 21
  • 1
0
votes
0 answers

How to draw curve to bottom line of a Triangle in Android using Canvas by Path

Here, a triangle is drawn using a path, I'm not sure how it is drawn by just two lineTo calls, if I manipulate any of the lineTo methods the triangle's right & left side is updated, what I want to do is add a curve to the bottom line such that it…
Sharan
  • 1,055
  • 3
  • 21
  • 38
0
votes
1 answer

Can we create a canvas programmatically from a view in Android

I am trying to create a dummy view from already existing View. Original Image: Need to create dummy view like this. I tried with paint and canvas. public class MyView extends View { Paint paint; Path path; public MyView(Context…
Vijay Dhas
  • 71
  • 6
0
votes
0 answers

Why am I getting a value error in imagegrab pil?

So I am making an Tkinter painting application but I keep getting a Value:Error which is blocking me from proceeding and I don't know how to solve it. here is my code from tkinter import * from tkinter import Scale from tkinter import colorchooser,…
0
votes
0 answers

Error Using painting script in google colab

I am trying to be able to draw in google colab. I have found a file that works perfectly. https://gist.github.com/rickkk856/6a2800cc84dd8fd456074e5a467edc47 Use a canvas element to achieve this. The script includes a button to capture the drawing…
0
votes
0 answers

How to draw a line using drawLine?

I want to draw intersecting lines between my buttons, for this I use Stack and CustomPaint by selecting "drawLine". However, when I try to add a CustomPaint inside my Stack, everything turns white, if the class is removed, the elements become…
Verc
  • 145
  • 1
  • 8
0
votes
0 answers

Paint a JPG map based on electoral results

In Italy, we just had elections on Sunday. I'd like to paint this map, showing the various municipalities of my Province, according to the results of said elections (specifically, which coalition had the majority of votes and how big was the…
Tommy
  • 93
  • 1
  • 8
0
votes
0 answers

I try to make custom progress indicator with Custom painter but painter is not updating the value

I try to make custom progress indicator with Custom painter but painter is not updating the value help: can you help me to use custom painter? also can we change circle pointer to square box with arrow pointing to progress class MyCsPaint extends…
0
votes
1 answer

JFrame Graphics2D.drawline() x-axis origin problem in Java

I created a JFrame. And when I draw a line with x=0, y=0 starting point in the x and y axis with Graphics2D.drawline(), it does not start from the x=0 axis of the JFrame. What should I do? enter image description here import…
ali
  • 1
  • 1
0
votes
1 answer

C# Winforms How to draw a rectangle on a button on a mouse over?

In our application we have white buttons on a white form. When the mouse hovers the button we want to show a light-blue transparant rectangle over the button. I want to create this user control, but I don't know how to do this. I've tried google,…
Martijn
  • 24,441
  • 60
  • 174
  • 261
0
votes
2 answers

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 create a custom background to treat both the emoji…
scott lee
  • 546
  • 5
  • 23