Issues around forms and graphics being drawn onto a computer screen, windowing system or device
Questions tagged [drawing]
5923 questions
2
votes
1 answer
WPF canvas drawing with Graphics
I'd like to ask if there is any possibility to draw on WPF Canvas with some kind of a Graphics type providing methods like: DrawLine, DrawPath etc.. (as it was in .NET 2).
I know there's a lot of stuff like storyboards etc.. but I'm planning to do…

theSpyCry
- 12,073
- 28
- 96
- 152
2
votes
1 answer
Drop shadow coordinate different from iPhone OS 3.2?
I'm trying to draw a custom view with a drop shadow. I'm having different results from iPhone OS 3.2. Has the coordinate system changed for CGContextSetShadowWithColor from 3.2?
Here is the code I'm using:
CGContextRef graphicContext =…

Axel
- 226
- 2
- 5
2
votes
1 answer
Getting a line that has the coordinates defined by the mouse location
I'm trying to make a little graphics program that has a circle of diameter 100 on the screen and from the center of it, a line is coming out of it that is always attached to the mouse pointer until such time that the user does a click, and then the…

user3832863
- 97
- 1
- 12
2
votes
1 answer
How to drawing a shapes in QtextEdit
I currently working on a text editor using Qtextedit and I want to Draw a shapes like triangle, square and ellipse… etc in the editor to Richness the document.
So I was wondering if is it possible to do this with Qtextedit and only Qtextedit.
…

Tarta Rikker
- 83
- 9
2
votes
2 answers
Update a drawing without deleting the previous one
I created this within a drawing method
private void draws()
{
Bitmap bmp = new Bitmap(pictureBox17.Width, pictureBox17.Height);
using (Graphics g = Graphics.FromImage(bmp))
{
//define area do pictureBox17 e preenche a…

ng80092b
- 621
- 1
- 9
- 24
2
votes
1 answer
Drawing a rectangle (or anything) on QGraphicsView
I'm using QtCreator to build an interface application.
I'm just getting used to Qt and toying around trying to draw stuff on a QtGraphicsView.
Since I created my interface with the editor, I am retrieving my objects in the code like so (please tell…

dominicbri7
- 2,479
- 4
- 23
- 33
2
votes
2 answers
Android paint/draw path with transparent background
Im my drawing app, when I draw path it appears in a black square, but should not be so, please enlighten me. This is my code an a screenshot: http://tinypic.com/r/2d9cuhl/8
//setup drawing
private void setupDrawing(){
drawPath = new Path();
…

Nicu Ro
- 33
- 4
2
votes
2 answers
Generate Staff Card
our company wants to print staff card for our personnel so we prepared a template which contains a placeholder for each person's photo, name and department.
we have a database table that includes path to photo, name and department of each…

mhesabi
- 1,140
- 3
- 22
- 48
2
votes
1 answer
Embossing an image shape in android (using EmbossMaskFilter)
I want to get an embossed bitmap created based on a Path object. The problem is that embossed effect only applies for straight edge.
I want to get a final result like this:
Path Object is created as follows
Path mPath= new…

pats
- 1,273
- 2
- 20
- 43
2
votes
2 answers
How do I add a custom view to a HorizontalScrollView?
So, I followed a tutorial for drawing stuff on android. I have created a Panel class that extends SurfaceView that I draw on using a thread. Now I want to put this Panel in a scroll view, specifically one that scrolls horizontally so that I can draw…

Sunian314
- 21
- 1
2
votes
1 answer
Draw line on a dynamically created picturebox
i need to draw a line for example, in a dynamically created PictureBox. What happens is that the picture box is created and shown in the form but the line is missing. My code is below, any ideas?? thnx
public void create_pb()
{
PictureBox pb =…

Stavros Afxentis
- 289
- 1
- 4
- 16
2
votes
3 answers
Drawing and filling a Circle
I just started with SDL in c++ and VS 2013 Community.
I want to draw a circle and so i searched on Google and found http://content.gpwiki.org/index.php/SDL:Tutorials:Drawing_and_Filling_Circles. But as I tried to implement it in a seperate…

Phorskin
- 81
- 1
- 2
- 6
2
votes
1 answer
How to override drawing TBitBtn Glyph?
In writing a custom control inheriting from a TBitBtn, I'm searching for a way to override or intercept just the drawing of the glyph and draw the glyph myself, while not having to redraw the entire control. I'm widely using VCL Styles and am…

Jerry Dodge
- 26,858
- 31
- 155
- 327
2
votes
3 answers
Clear NSView programmatically in swift
I have a NSView connected to a custom class.There's some drawing on that view:
class LineDrawer: NSView {
var linear = NSBezierPath()
var storage = NSUserDefaults.standardUserDefaults()
override func drawRect(dirtyRect: NSRect) {
…

pomo_mondreganto
- 2,028
- 2
- 28
- 56
2
votes
2 answers
Is there a faster way to clear the Console?
I'm developing some simple 2D array-based games. Their main feature is a bouncing "ball" (simply a char ball_char='O') in a box. The structure BALL has 2 variables: X and Y which rapresent its array positions. Every clock (a Sleep(milliseconds)) a…

Dadex
- 119
- 2
- 12