draw

Drawing Graphs (charts) in JSF

Hi, How can I draw dynamic graphs in web pages in JSF ? People have suggested Google Chart Api I want something that can work offline ...

android: quality of the images resized in runtime

I want to show images using drawBitmap() method. But before I want to resize it according screen dimensions. I have a problem with quality of result image. You can see screenshots and test code below. How can I resize images in runtime with a good quality? Thank you for solutions. Original image: Result screenshot on device: import...

using a UIView as MKMapView subview to draw a route

Hi!Before anything i'm sorry for my bad english. I'm trying to draw a route in a UIView and set that view as a MKMapView. Now i have a UIView class (ViewClass) where i put all the touches methods and set the view of my viewcontroller as an instance of that class. The MKMapView is a viewcontroller.view subview. I can get all the touch...

Low memory problem drawing a route with MKAnnotationView

Hi! I'm drawing a route like it's done in http://spitzkoff.com/craig/?p=81 but i'm not loading de coordinates from a file, i get the coordinates from GPS with CLLocationManager. The problem is that my app crash with low memory in the device. I guess it's the way i'm drawing the route. In - (MKAnnotationView *)mapViewMKMapView *)_mapVi...

Winforms Wait to draw Until Controls Added

I am adding a couple hundred controls to a form and the form flickers until its done as it adds each control, is there anyway to stop this? ...

How to draw a route between two geopoints on the Android

I have two OverlayItem's on a MapView. How can I draw a route between the two geopoints? ...

draw hebrew text to an image using Image module (python)

Hi I am trying to use Image module in order to make bitmaps with hebrew lettering in it. when printing from the shell (idle) I managed to print hebrew, but when trying to draw text to a bitmap it draws some ascii lettering. this is the code: import Image import ImageDraw a = "אריאל" #or any other hebrew string im=Image.new('RGB',(2...

want to draw a line or path on google map in HelloMapView

Hello, I'v been busy for a long long long time finding out how to draw a line between two (gps) points on the map in HelloMapView but with no luck. Could anyone please tell me how to do so. Suppose I use the HelloMapView which extends MapView. Do I need to use overlays? If so do I have to override the onDraw() method of the overlay an...

Java: Draw Lines on a JMF Lightweight_Rendered Player

Hello, I've got a problem: I have a JMF-Videoplayer in my application and I want to draw on it (while the video continues). The Problem I've got is that I use a JLayeredPane where I add the VideoPlayer-Control on Layer.Content_Layer(index 0) and a JPanel (setOpaque(false)) on Layer.Modal_Layer(index 300). What happens is, when I add th...

How to draw polygons with CGPath?

Hello, I have been reading thru the documentation however it is not immediatly clear to me how to draw a polygon using CGPath. All I need to do is to draw CGPath around something like this: __ \ \ \ \ \__\ Could anyone please provide an snippet on how to do this? Additionally I assume CGPathContainsPoint will help me determine...

Help rendering sprite

What i want the program to do is draw the graphic ground at each point in which a one appears in the .txt file, but everytime i run it, it doesnt draw the sprite? here is the code..... using (StreamReader sr = new StreamReader("trainingLevel.txt")) { while (!sr.EndOfStream) { stri...

C++ windows bitmap draw text

How can I draw text (with setting font and size) on image and save it as JPEG? For example CBitmap bitmap; bitmap.CreateBitmap(width, height, 1, 32, rgbData); Here I want to draw some text on bitmap: CImage image; image.Attach(bitmap); image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatJPEG); ...

Drawing strings in OpenGL

What's the quickest, easiest way to draw text in standard OGL ?? ...

How to create a vertical color gradient (or any other angle besides a flat horizontal gradient)

Hey everyone, my first time trying to draw a multi-color gradient in actionscript 3. So I got this code from the help docs, but I can't seem to get a vertical gradient, whatever formula or number I use for rotate, it stays stuck on the default horizontal gradient :( You can view my gradient here My Code: You can see in the traces the...

After drawing circles on C# form how can i know on what circle i clicked?

I have to represent graphically an oriented graph like in the image below. i have a C# form, when i click with the mouse on it i have to draw a node. If i click somewhere on the form where is not already a node drawn it means i cliked with the intetion of drawing a node, if it is a node there i must select it and memorize it. On the n...

draw an uiimage with in the user specified coordinates

i am new to this core graphics or cv . I need a little help here. Can you plz guide me how to draw an image using openGL ES with my own cordinates or any other idea... consider my points are topleft (40,160) topRight(80,160) bottomLeft(0,40) bottomRight(160,40) i want my image to be drawn with in these points..... Plz help me... i w...

Add shadow to UIImage drawn in rounded path

I'm drawing a rounded image in a UITableView cell like so: CGRect imageRect = CGRectMake(8, 8, 40, 40); CGFloat radius = 3; CGFloat minx = CGRectGetMinX(imageRect); CGFloat midx = CGRectGetMidX(imageRect); CGFloat maxx = CGRectGetMaxX(imageRect); CGFloat miny = CGRectGetMinY(imageRect); CGFloat midy = CGRectGetMidY(imageRect); CGFloat ...

How to resize and draw an image using wxpython?

Hello, I want to load an image, resize it to a given size and after draw it in a specific position in a panel. All this using wxpython. How can I do it? Thanks in advance! ...

Javascript draw dynamic line

Hello, I'm looking for Javascript code for letting the user draw a line (on an image). Just as the line tool in Photoshop (for example): The user clicks on the image, drags the mouse (while the line between the start point and the mouse point is dynamically drawn on mouse drag). I would also need a callable function to send the page ...

Attach a bitmap on another bitmap

I have a class Building. It contains a _bitmap object, referenced to a drawable. I can draw it on an external View, where its canvas calls myBuilding.getBitmap(). Now I want to draw some windows on the building, but I need them to be "tied" to the building, so that translating the x and y of myBuilding, the windows move together. Is th...