Click here to Skip to main content
12,239,973 members (72,099 online)
   

C#

 
GeneralRe: How to convert Graphics image to Bitmap? Pin
FrankeyJames5-Apr-09 16:00
memberFrankeyJames5-Apr-09 16:00 
GeneralRe: How to convert Graphics image to Bitmap? Pin
Christian Graus5-Apr-09 20:43
mvpChristian Graus5-Apr-09 20:43 
AnswerRe: How to convert Graphics image to Bitmap? Pin
Xmen W.K.5-Apr-09 16:13
memberXmen W.K.5-Apr-09 16:13 
AnswerRe: How to convert Graphics image to Bitmap? Pin
Guffa5-Apr-09 16:23
mvpGuffa5-Apr-09 16:23 
You can't convert a Graphics object to a Bitmap, as it doesn't contain the image. The Graphics object is just used to draw on a canvas, in this case the canvas is a Bitmap object.

You are creating a Graphics object to draw on the original image, but what you want to do is to create it to draw on the new image, then you draw the original image onto the new image.

The transform controls how the drawing is done using the Graphics object, so when you draw the original image using that Graphics object it will be rotated.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: How to convert Graphics image to Bitmap? Pin
FrankeyJames5-Apr-09 18:18
memberFrankeyJames5-Apr-09 18:18 
AnswerRe: How to convert Graphics image to Bitmap? Pin
Luc Pattyn5-Apr-09 17:24
mvpLuc Pattyn5-Apr-09 17:24 
GeneralRe: How to convert Graphics image to Bitmap? Pin
FrankeyJames5-Apr-09 18:21
memberFrankeyJames5-Apr-09 18:21 
GeneralRe: How to convert Graphics image to Bitmap? Pin
Luc Pattyn5-Apr-09 19:10
mvpLuc Pattyn5-Apr-09 19:10 
QuestionNewbies and databases Pin
stonebergftw5-Apr-09 15:10
memberstonebergftw5-Apr-09 15:10 
AnswerRe: Newbies and databases Pin
Christian Graus5-Apr-09 15:18
mvpChristian Graus5-Apr-09 15:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 28 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid