drawing Questions
6
Solved
I have three questions actually:
Is it better to draw an image on a bitmap or create a bitmap as resource and then draw it over a bitmap? Performance wise, which one is better?
If I want to draw ...
3
Solved
How to draw a filled rectangle with specified bounds and inside that rectangle text to be drawn using Canvas Android ?? I tried
mPaint.setColor(Color.GREEN);
canvas.drawText(mText, x, y, mPaint);...
3
Solved
Motivation - Write a program in C (and Assembly, if required) to color a rectangular area in the screen red.
STRICT requirements - GNU/Linux running with the bare minimum utilities and interfaces ...
0
I'm still hoping to receive an answer to the question(s) below. For clarity, I've added a few comments.
The code below generates different segments of a circle through (Bezier)paths, which togethe...
Levitical asked 12/10, 2019 at 4:32
2
Solved
Is there an easy way to flip a canvas in Android? I cant seem to find anything that allows me to flip it vertically so that zero on the y-axis is the bottom of the phone screen instead of the top. ...
3
Solved
I have two Bitmaps, named largeBmp and smallBmp. I want to draw smallBmp onto largeBmp, then draw the result onto the screen. SmallBmp's white pixels should be transparent. Here is the code I'm usi...
1
how can I easily create an app like this in React Native?
As you can see on the gif I need to draw rectangles on the grid. Are there any libraries or maybe even paid commercials solutions for cr...
Nitrochloroform asked 7/8, 2019 at 9:10
2
Solved
In my scenario I have 3 or more multi-page tiff images which I need to merge into a single tiff image.
Below is the the code I have tried. It merges in to a single tiff image but only with first ...
Heder asked 21/1, 2019 at 6:17
6
Solved
Can anyone guide how to generate image from input text. Image might have any extension doesn't matter.
4
Friends of the Internets,
Google Docs's Intert Drawing tool works, except for the fact that it wastes half of all 16:9 screens, since it opens a forced-square window that is UNRESIZABLE, cripling ...
Gomez asked 8/7, 2019 at 10:14
2
I have a TextView in my Activity to which I want to add a shadow. It is supposed to look like in OsmAnd (100% opaque):
But it looks like this:
You can see that the current shadow is blurred a...
2
I try to find and show corners using opencv and unity3d. I capture by unity camera. I send texture2d to c++ code that uses opencv. I detect corners using opencv(harris corner detector). And c++ cod...
Leghorn asked 23/5, 2015 at 7:52
2
Solved
That's my code at the moment:
class LineDrawer : NSView {
required init?(coder aDecoder : NSCoder) {
super.init(coder: aDecoder)
}
var line : Array<Line> = []
var lastPt : CGPoint!
overr...
1
How can I draw a Bezier Line between two non-static DOM elements, like this:
The two lines should be drawn between the
<div class="brick small">Line starts here</div>
and the
<...
Doctrine asked 30/9, 2017 at 23:12
8
Solved
I have this code that draws a Rectangle ( Im trying to remake the MS Paint )
case "Rectangle":
if (tempDraw != null)
{
tempDraw = (Bitmap)snapshot.Clone();
Graphics g = Graphics.FromImage(tem...
2
I want to do a rounded rectangle outline on an NSImage and I figured that using NSBezierPath would be the best way. However, I ran into a problem: instead of drawing a nice curve, I get this:
Fo...
Hoad asked 2/12, 2012 at 21:35
7
Solved
3
Solved
I have a complex UIBezierCurve which I need to draw once with some particular line parameters, and then draw it again as overlay with other line parameters, but also I need the last part of the cur...
Coan asked 13/7, 2012 at 14:10
3
Solved
I draw a triangle using line. How can I fill color on it? So far I can only success color the line but not fill the color.
public void paintComponent(Graphics g){
super.paintComponents(g);
int k...
4
Solved
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawrectangle.aspx
FillRectangle, DrawRectangle, FillElipse and DrawEllipse all can take 4 Float (or "Single") parameters: x, y, wid...
Juster asked 20/1, 2009 at 20:37
1
Solved
I am not using any libraries so this is not a duplicate of this.
I am drawing the pie sections myself like this:
var sections: [PieChartSection] = [] {
didSet {
setNeedsDisplay()
}
}
override...
3
Solved
I need to create a rectangle object and then paint it to the applet using paint(). I tried
Rectangle r = new Rectangle(arg,arg1,arg2,arg3);
Then tried to paint it to the applet using
g.draw(r)...
Ordinarily asked 31/7, 2012 at 17:19
2
Solved
I would like the user to touch 2 points and then a line is drawn between those two points. Here is what I have so far:
func drawline(){
let context = UIGraphicsGetCurrentContext()
context!.begin...
2
Solved
I am new to SVG and I am trying to draw a straight line between two points. I managed so far by using this command:
<line x1="50" y1="50" x2="150" y2="150" style="stroke:rgb(255,255,0); stroke-...
2
Solved
Instead of words or numbers being the tick labels of the x axis, I want to draw a simple drawing (made of lines and circles) as the label for each x tick. Is this possible? If so, what is the best ...
Semicentennial asked 4/1, 2012 at 20:29
© 2022 - 2024 — McMap. All rights reserved.