paint Questions

4

Solved

I have something like this: CustomPaint( painter: CurvePainter(), ) In this class I am doing my painting: import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart';...
Audiometer asked 10/9, 2019 at 15:54

4

Solved

I have OnPaint method overrided to draw an Ellipse on the screen. protected override void OnPaint(PaintEventArgs e) { MessageBox.Show("Paint"); if (debugStarted) { int y = rtbLogicCode.Place...
Freckle asked 9/7, 2012 at 6:12

6

I want a window without title bar but with resizable frames and shadow. This can easily be achieved by removing WS_CAPTION and adding WS_THICKFRAME, however, since Windows 10, there's a 6px white n...
Godfree asked 27/9, 2016 at 18:5

3

Solved

I need a way to for a custom control (descended from TCustomControl) to tell if it is currently visible. I'm not talking about the .Visible property; I mean whether or not it's actually being displ...
Lavella asked 14/3, 2009 at 19:16

5

Solved

I'm trying to write an application that can be used to create pictures that look like paintings using simulated brush strokes. Are there any good sources for simple ways of simulating brush strokes...
Egide asked 18/6, 2010 at 2:5

7

I would like my text background in Textfield looks like this : But with this code : style: TextStyle( background: Paint()..color = Colors.blue ..style = PaintingStyle.fill, color: Colors.white...
Sirloin asked 23/9, 2021 at 23:3

5

I'm looking for an algorithm that places tick marks on an axis, given a range to display, a width to display it in, and a function to measure a string width for a tick mark. For example, given tha...
Locust asked 25/10, 2008 at 23:54

2

I have a ShapeDrawable: final ShapeDrawable drawable = new ShapeDrawable(shape); drawable.getPaint().setStyle(Paint.Style.FILL); drawable.getPaint().setColor(0xFFffffff); I want to set border(st...
Laughlin asked 28/6, 2015 at 19:38

1

Solved

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 ne...

5

Solved

I'm creating a gui for my project. When the gui is first loaded only background is visible, so buttons are not visible, but when mouse over them, they are visible. What is the solve this problem? ...
Expedient asked 11/3, 2014 at 10:52

3

Solved

I have a class in Qt that inherits QDockWidget. And that class contains another widget. Is there any possibility to define a function in my QDockWidget inherited class that draws stuff on top of th...
Girhiny asked 14/6, 2012 at 14:4

6

Solved

I know this is a common question and there are a lot of answers of this question. I've used some of this. Although many of them are the same. But the sad thing for me is that none of them worked fo...
Sergiosergipe asked 7/10, 2012 at 15:37

6

I want to display text as below in my app. I am using Paint class with style FILL_AND_STROKE to achieve this. But only one method setColor() is available to set the color. How do I set different s...
Baeyer asked 28/1, 2012 at 11:4

7

Solved

I want to draw a text to a paint. How to draw it with a custom font (ex Helvetica ) and bold also? I would preffer to use a system font and not create it from assets. Thanks.
Nylon asked 18/5, 2011 at 10:7

3

Solved

I want a Bitmap icon with bold text to draw it on map. I have a snippet to write text on image: Bitmap icon = BitmapFactory.decodeResource(PropertyMapList.this.getResources(), R.drawable.location...
Toad asked 29/7, 2013 at 14:22

9

Paint.setColor is expecting an integer. But what I have is a Color object. I don't see a color.getIntValue() in Java? So how do I do that? What I want is something like public Something myMethod(C...
Carolanncarole asked 2/8, 2013 at 16:59

1

The task is to simply take the default hex color of the vehicle's image (known prior - #bdd4de in this case) and dynamically switch it to the color selected by the user. For the shade, I can simply...
Glossolalia asked 8/1, 2021 at 17:44

5

Solved

As I see it, there are two ways to handle mouse events to draw a picture. The first is to detect when the mouse moves and draw a line to where the mouse is, shown here. However, the problem with t...
Saharanpur asked 28/2, 2009 at 2:13

5

I am trying to mix two source RGB vectors to create a third "resultant vector" that is an intuitive mix of the first two. Ideally, I would be able to emulate "real paint mixing characteristics", ...
Deadradeadweight asked 12/12, 2009 at 2:15

2

Solved

How to draw text with a specific TextAppearance? Here is my code. Paint paint = new Paint(); paint.setAntiAlias(true); paint.setColor(Color.WHITE); paint.setFakeBoldText(false); paint.setT...
Multure asked 30/10, 2014 at 19:7

2

Solved

I am drawing lines on an ImageView by doing something like this: Bitmap imageBitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); Bitmap duplicateBitmap = Bitmap.createBitmap(imageBitma...
Postnasal asked 24/9, 2020 at 10:6

2

Solved

I am drawing lines on an ImageView by doing something like this: Bitmap imageBitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); Bitmap duplicateBitmap = Bitmap.createBitmap(imageBit...
Ignescent asked 23/9, 2020 at 8:49

1

I have created some brushes but i need more and i found some brushes in JS but i couldn't convert them perfectly in android code, This is the Link http://perfectionkills.com/exploring-canvas-drawin...
Expertism asked 8/9, 2020 at 8:20

5

Solved

I have a custom View that uses Paint and Canvas to draw objects. My question is how to set: int color = R.color.white; paint.setColor(color); from my /res/valuse/color.xml which includes resourc...
Kellyekellyn asked 15/10, 2012 at 15:57

3

I am trying to make a circle appear more material. So I want to give it a shadow of some sort how do I do it with the Paint class in flutter thumbPaint = Paint() ..color = Colors.white, ..style = ...
Wildfowl asked 9/6, 2019 at 8:11

© 2022 - 2025 — McMap. All rights reserved.