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';...
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...
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...
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...
Prandial asked 24/1, 2022 at 15:26
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...
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...
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.
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...
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...
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", ...
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...
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...
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...
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...
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 = ...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.