Top "Draw" questions

A tag for questions about methods of displaying graphical data or images.

Draw Rectangle in XNA using SpriteBatch

I am trying to draw a rectangle shape in XNA using spritebatch. I have the following code: Texture2D rect = …

c# xna draw
Swift 3: Drawing a rectangle

I'm 3 days new to swift, and I'm trying to figure out how to draw a rectangle. I'm too new to …

swift graphics draw drawrect swift3
Draw lines between 2 elements in html page

i need to draw lines between 2 element on html page the results should be like this: http://img2.timg.co.…

javascript jquery html html5-canvas draw
How can I center Graphics.drawString() in Java?

I'm currently working on the menu system for my Java game, and I wonder how I can center the text …

java text draw centering graphics2d
How to draw free hand polygon in Google map V2 in Android?

I want to draw a Free Hand Polygon on the Map in Google Map V2. This task was possible with …

android google-maps overlay draw polygon
How to make any view to draw to canvas?

I have a short question: Suppose I have a (mutable) bitmap that I need to modify (add images, texts, etc...) . …

android bitmap draw android-canvas mutable
Drawing Rectangles in iOS

My goal for my app is for the user to be able to sort through different scheduling options by swiping …

iphone objective-c draw rectangles
How to draw a gradient line (fading in/out) with Core Graphics/iPhone?

I know how to draw a simple line: CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0); CGContextMoveToPoint(context, x, y); CGContextAddLineToPoint(context, x2, y2); CGContextStrokePath(context); …

iphone core-graphics draw gradient
How to draw a rectangle in WPF at a specific x,y screen location?

In C#, WPF I've created a rectangle: Rectangle myRgbRectangle = new Rectangle(); myRgbRectangle.Width = 1; myRgbRectangle.Height = 1; SolidColorBrush mySolidColorBrush = new SolidColorBrush(); Yes, …

wpf draw rectangles
How to draw a circle with animation in android with circle size based on a value

I want to develop a custom component which draws part of the circle based on different values. e.g draw 1/4 …

android animation draw