Click here to Skip to main content
15,914,071 members
Home / Discussions / Graphics
   

Graphics

 
GeneralClosing stream after calling Bitmap.Save Pin
jchalfant25-Apr-08 6:20
jchalfant25-Apr-08 6:20 
GeneralRe: Closing stream after calling Bitmap.Save Pin
Mark Salsbery25-Apr-08 7:36
Mark Salsbery25-Apr-08 7:36 
GeneralRe: Closing stream after calling Bitmap.Save Pin
Christian Graus28-Apr-08 14:30
protectorChristian Graus28-Apr-08 14:30 
GeneralLaggy GIF Problem Pin
Reelix24-Apr-08 20:27
Reelix24-Apr-08 20:27 
GeneralRe: Laggy GIF Problem Pin
Randor 28-Apr-08 14:04
professional Randor 28-Apr-08 14:04 
GeneralRe: Laggy GIF Problem Pin
Reelix28-Apr-08 20:49
Reelix28-Apr-08 20:49 
GeneralRe: Laggy GIF Problem Pin
Randor 29-Apr-08 3:59
professional Randor 29-Apr-08 3:59 
GeneralDrawing to Bitmap Pin
cocoonwls20-Apr-08 21:54
cocoonwls20-Apr-08 21:54 
Hi all,

I have created a double buffering drawing method,the code as below:

//assign buffer graphics
    BufferedGraphicsContext CurrentContext = BufferedGraphicsManager.Current;
    BufferedGraphics bg = CurrentContext.Allocate(this.CreateGraphics(), this.ClientRectangle);
    bg.Graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
    bg.Graphics.Clear(this.BackColor);

    //some method to drawing...
    this.draw(bg.Graphics)

    //render graphics
    bg.Render();
    bg.Dispose();

My question is how can i draw the graphic to bitmat or any type of picture?Confused | :confused:

Note: This drawing method is build in custom user control

thanks in advance
cocoon
GeneralRe: Drawing to Bitmap Pin
cocoonwls20-Apr-08 23:58
cocoonwls20-Apr-08 23:58 
GeneralReal time video Pin
Chandrias20-Apr-08 4:38
Chandrias20-Apr-08 4:38 
GeneralRe: Real time video Pin
Mark Salsbery21-Apr-08 21:27
Mark Salsbery21-Apr-08 21:27 
Questionis directx installed? Pin
bart00019-Apr-08 5:37
bart00019-Apr-08 5:37 
AnswerRe: is directx installed? Pin
Christian Graus20-Apr-08 11:59
protectorChristian Graus20-Apr-08 11:59 
AnswerRe: is directx installed? Pin
Hamid_RT2-May-08 8:09
Hamid_RT2-May-08 8:09 
General"warp mode image transformation" in photoshop Pin
dapa15-Apr-08 5:06
dapa15-Apr-08 5:06 
GeneralRe: "warp mode image transformation" in photoshop Pin
El Corazon15-Apr-08 6:02
El Corazon15-Apr-08 6:02 
GeneralRe: "warp mode image transformation" in photoshop Pin
Dan16-Apr-08 13:37
Dan16-Apr-08 13:37 
GeneralRe: "warp mode image transformation" in photoshop Pin
dapa17-Apr-08 2:17
dapa17-Apr-08 2:17 
GeneralAlgorithm to divide image into rectangulars of the same color [modified] Pin
xax14-Apr-08 5:37
xax14-Apr-08 5:37 
GeneralRe: Algorithm to divide image into rectangulars of the same color Pin
Luc Pattyn14-Apr-08 5:54
sitebuilderLuc Pattyn14-Apr-08 5:54 
GeneralRe: Algorithm to divide image into rectangulars of the same color Pin
xax15-Apr-08 12:43
xax15-Apr-08 12:43 
GeneralRe: Algorithm to divide image into rectangulars of the same colo Pin
Luc Pattyn15-Apr-08 13:10
sitebuilderLuc Pattyn15-Apr-08 13:10 
GeneralProcessor Intensive Programming [modified] Pin
Reelix14-Apr-08 1:52
Reelix14-Apr-08 1:52 
GeneralRe: Processor Intensive Programming Pin
El Corazon14-Apr-08 4:33
El Corazon14-Apr-08 4:33 
Generalwant suggestion Pin
bharathn8712-Apr-08 8:46
bharathn8712-Apr-08 8:46 

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.