07-08-2012 11:07 PM
Hi Im just gonna ask if it is possible to transfer the contents of a Graphics class to a bitmap. But currently im trying to rotate may drawings from the graphics class but most of the examples rotate bitmaps. Is this possible tnx in advance.
07-09-2012 03:13 AM
07-09-2012 03:42 AM
is it possible the opposite of that? Example I draw sevaral Rectangles using drawRect method is it possible to convert this recatangles in Bitmap? What I'm trying to do is to rotate my drawings example a Rectangle, Gradient RoundedRectangle etc.
07-09-2012 03:54 AM
07-11-2012 09:33 PM
because want i'm trying to do is I would like to draw example a shape and turn it into a bitmap. When I tried to use Graphics.create it makes a rectangle area to draw which is what I need. But the problem is that the area is a rectangle I would like to make the area of the bitmap to exactly what I draw example a circle. Below is the test class that I used.
protected void paint(Graphics g)
int _width = Display.getWidth();
int _height = Display.getHeight();
graphics.fillRect(0, 0, 480, 800);
Bitmap result = new Bitmap(_width, _height);
Graphics grap = Graphics.create(result);
grap.fillEllipse(100, 200, 160, 240, 100, 270, 0, 360);
grap.drawEllipse(105, 205, 165, 245, 105, 275, 0, 360);
g.drawBitmap(50, 50, 200, 200, surface, 0, 0);
07-12-2012 02:10 AM