Click here to Skip to main content
15,903,856 members
Home / Discussions / C#
   

C#

 
GeneralRe: Date and time Pin
Nick van der Plas26-Sep-03 4:04
Nick van der Plas26-Sep-03 4:04 
QuestionCrystal Reports? Pin
Marix26-Sep-03 2:58
Marix26-Sep-03 2:58 
AnswerRe: Crystal Reports? Pin
Member 56585726-Sep-03 8:00
Member 56585726-Sep-03 8:00 
GeneralRe: Crystal Reports? Pin
Member 56585726-Sep-03 8:03
Member 56585726-Sep-03 8:03 
GeneralRe: Crystal Reports? Pin
Marix28-Sep-03 21:58
Marix28-Sep-03 21:58 
Questionhow to speed up GDI+ without using pointer Pin
zecodela25-Sep-03 23:34
zecodela25-Sep-03 23:34 
AnswerRe: how to speed up GDI+ without using pointer Pin
Anonymous26-Sep-03 1:59
Anonymous26-Sep-03 1:59 
GeneralRe: how to speed up GDI+ without using pointer Pin
fadee26-Sep-03 2:02
fadee26-Sep-03 2:02 
AnswerRe: how to speed up GDI+ without using pointer Pin
fadee26-Sep-03 4:57
fadee26-Sep-03 4:57 
GeneralRe: how to speed up GDI+ without using pointer Pin
zecodela26-Sep-03 5:06
zecodela26-Sep-03 5:06 
GeneralRe: how to speed up GDI+ without using pointer Pin
fadee26-Sep-03 6:29
fadee26-Sep-03 6:29 
GeneralRe: how to speed up GDI+ without using pointer Pin
ralfoide26-Sep-03 8:34
ralfoide26-Sep-03 8:34 
GeneralRe: how to speed up GDI+ without using pointer Pin
zecodela26-Sep-03 15:49
zecodela26-Sep-03 15:49 
GeneralRe: how to speed up GDI+ without using pointer Pin
zecodela26-Sep-03 15:51
zecodela26-Sep-03 15:51 
GeneralRe: how to speed up GDI+ without using pointer Pin
zecodela26-Sep-03 19:02
zecodela26-Sep-03 19:02 
GeneralRe: how to speed up GDI+ without using pointer Pin
fadee26-Sep-03 20:00
fadee26-Sep-03 20:00 
GeneralAding a dynamic web reference at runtime Pin
Obi725-Sep-03 22:10
Obi725-Sep-03 22:10 
GeneralRe: Ading a dynamic web reference at runtime Pin
Kannan Kalyanaraman26-Sep-03 0:57
Kannan Kalyanaraman26-Sep-03 0:57 
GeneralRe: Ading a dynamic web reference at runtime Pin
Obi726-Sep-03 1:32
Obi726-Sep-03 1:32 
GeneralSetup creation problem Pin
..Hubert..25-Sep-03 22:03
..Hubert..25-Sep-03 22:03 
GeneralQuestion about sockets. Pin
jtmtv1825-Sep-03 20:08
jtmtv1825-Sep-03 20:08 
QuestionHow to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
ralfoide25-Sep-03 19:06
ralfoide25-Sep-03 19:06 
AnswerRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
Jeremy Kimball25-Sep-03 20:06
Jeremy Kimball25-Sep-03 20:06 
Wouldn't something like this work?

(assuming surface is 'mySurface' and Image is 'myImage')

System.IntPtr pDC = mySurface.GetDC();
Graphics g = Graphics.FromHdc( pDC );
g.DrawImage( myImage, ..... );
g.ReleaseHdc( pDC );

The key is to remember to release the Device Context, or else you'll leak resources.

Let me know if this works (not in front of Studio at the moment)

Jeremy Kimball

GeneralRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
ralfoide26-Sep-03 8:38
ralfoide26-Sep-03 8:38 
GeneralRichTextBox Auto Scroll Down Pin
zecodela25-Sep-03 18:27
zecodela25-Sep-03 18:27 

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.