Issues around forms and graphics being drawn onto a computer screen, windowing system or device
Questions tagged [drawing]
5923 questions
2
votes
1 answer
How to create custom brush paint with fabric.js?
I have been trying to create a custom brush paint with an image file using fabric JS . I have tried using the fabric.PatternBrush but this is not the exact thing that I was looking for because this creates a background pattern kind of paint and what…

pariwesh
- 341
- 4
- 11
2
votes
1 answer
UIView CGGradient clipped to drawn "frame"
I'm trying to make a more sophisticated drawing of a UILabels (or a UIView, putting the UILabel on top, should that be required) background. Since I want this to resize automatically when the user changes iPhone orientation, I am trying to implement…

jollyCocoa
- 691
- 7
- 20
2
votes
2 answers
Android Paint EmbossMaskFilter conflicting with setShadowLayer
It looks like the mPaint.setShadowLayer() interferes with the mPaint.EmbossMaskFilter() directive. I cannot have both set for my paint, as there is nothing is drawn on the canvas otherwise.
mPaintRing = new Paint();
…

halxinate
- 1,509
- 15
- 22
2
votes
0 answers
Trouble in drawing on Canvas (Android) in bounds
I'm making an alphabet draw app where users (normally kids) will be able to fill color in the alphabet images in the app...
I've made the app which enabled me to draw anything on the canvas using the code given below...
Main Activity:
public class…

Osama_022
- 46
- 5
2
votes
2 answers
Rapid Java Shape Manipulation
My team is short on time in implementing a simple shape editor. We have to be able to create, delete, move, and copy simple shapes like rectangles and lines. This has to be a stand-alone application (may not use applets). We've fully implemented our…

Mike
- 19,267
- 11
- 56
- 72
2
votes
2 answers
Lets draw a spider
I am new to c# and VS, but I am getting it. The application is this: A program in which the end result will draw a spider from options in which the user will define. Lets say there are 100s of options: size and number of body parts, color,…
Jennifer
2
votes
1 answer
Why do I get a different behviour in Codename One simulator than on a real Android device?
I am trying to figure out why I get a different behaviour in the simulator (iPhone, Nexus, Nexus5, ... skins ) VS on an Android real device with the following code (my goal is to draw a text over a background image and save the whole in background…

HelloWorld
- 2,275
- 18
- 29
2
votes
1 answer
Drawing arrows on bing maps in Silverlight
I need to draw lines to demonstrate transportation of goods on Bing maps. To clarify start- and end-point, I draw a little arrowhead on the destination side. The problem is that when I view the global map, certain lines are drawn along the shortest…

froeschli
- 2,692
- 2
- 28
- 55
2
votes
1 answer
AS3: removing a lineStyle in the middle of drawing a shape
I want to draw a large red circle with a black outline and a smaller concurrent green circle with no outline. But when I draw the small green circle, it has the same lineStyle as the big red circle. There does not seem to be any kind of endLineStyle…

BladePoint
- 632
- 5
- 16
2
votes
2 answers
Drawing a system-like cursor, top-most, anywhere
I need to draw a system-like cursor that I simply can control the position of.
In other words, I need to draw a transparent image that looks just like the system cursor and I need it to be rendered on top of all other windows.
I've tried multiple…

jfax
- 65
- 1
- 9
2
votes
2 answers
Delphi drawing a smooth pie
Does anyone have a code for drawing a smooth pie on a canvas in Delphi?
All I could find on the web are examples of smooth lines but that does not help me much...
Also I considered Gr32, but for what I need, it adds a pretty big footprint to my…

user1137313
- 2,390
- 9
- 44
- 91
2
votes
1 answer
How to draw an array of NSStrings on as UIView without any leading space between them and occupies the entire rect?
I want to draw an array of strings of varied font size on a UIView as this.I have calculated the height required for each string to be drawn. The array of string in the example is {"Enter some text", "that", "will fit", "the rect"}. I calculate the…

Murali_kg
- 51
- 3
2
votes
1 answer
UIGestureRecognizer vs. UITouch Delegate Performance
I am writing an app for drawing.
My main question is: How do I get the best performance from touch events?
Is there a difference between UIGestureRecognizer and UITouch Delegates?
Are there different refresh rates or sth.?
Best
Philipp

Philsen3000
- 107
- 1
- 8
2
votes
3 answers
drawing outside client area, winAPI
How would I draw outside the client area of a window, and on the title bar. I know it can be done, but I am unsure of how to implement this effectively. Think google chrome, where the tabs are on the title bar.

Alexander Rafferty
- 6,134
- 4
- 33
- 55
2
votes
1 answer
Drawing view on iOS
How can I implement a view for users to draw in (specifically sign their name)? I would greatly prefer a library or sample code to implementing it myself.
Thanks

Jared Pochtar
- 4,925
- 2
- 29
- 39