Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: CreateGraphics on a System.Image Pin
Christian Graus13-Nov-07 12:38
protectorChristian Graus13-Nov-07 12:38 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 12:50
codemunkeh13-Nov-07 12:50 
GeneralRe: CreateGraphics on a System.Image Pin
Christian Graus13-Nov-07 12:59
protectorChristian Graus13-Nov-07 12:59 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 13:05
codemunkeh13-Nov-07 13:05 
AnswerRe: CreateGraphics on a System.Image Pin
Luc Pattyn13-Nov-07 13:06
sitebuilderLuc Pattyn13-Nov-07 13:06 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 13:09
codemunkeh13-Nov-07 13:09 
GeneralRe: CreateGraphics on a System.Image Pin
Luc Pattyn13-Nov-07 13:16
sitebuilderLuc Pattyn13-Nov-07 13:16 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 13:35
codemunkeh13-Nov-07 13:35 
Hmm. Well, being a noob with GDI (or anything more complicated than FillRectangle)...I really shouldn't argue a point, but...

If I keep it;
I get to use it during the search method which scans a text source for a result and then draws a message to the screen.
I get to update the image at will, without needing to re-get the Graphics object.
I mean, it's based on the same Image which is updated on the resize event, but the Graphics object is recreated just after that for the new Image.

Like I said, I have typically, 1GB of RAM spare on my dev machine and almost 600MB, I think, on the target machine. A few Graphics objects won't kill the system. OK, if the core part of Windows runs out of memory then, oops, but I haven't hit that eventuality yet.

As for slowing down, my dev machine, 2.6GHz Core2Duo Intel with a Radeon 2600 Pro, draws a typical screen (measured inaccurately using Environment.TickCount) in 31 or 46 "Ticks". Slow code, eh.
My 2GHz AMD Athlon which is about 4 years old, has DDR and not DDR2 RAM, and a Radeon 9200 using AGP and not PCI-E...can draw exactly the same screen completing in either 0 or 15 "ticks".
WTF | :WTF: Confused | :confused: Pretty new system, compared with 4 year old technology that sits in a cold room for weeks at a time. The only thing I can think of is the old machine has very little more than XP, .NET 2, and DirectX. The new machine has a fair bit more on it but not enough for a 3x slowdown.


Ninja (the Nerd)

Confused? You will be...

GeneralRe: CreateGraphics on a System.Image Pin
Luc Pattyn13-Nov-07 13:45
sitebuilderLuc Pattyn13-Nov-07 13:45 
QuestionImages Click Event Problem... Pin
kingletas13-Nov-07 12:01
kingletas13-Nov-07 12:01 
AnswerRe: Images Click Event Problem... Pin
Luc Pattyn13-Nov-07 12:17
sitebuilderLuc Pattyn13-Nov-07 12:17 
GeneralRe: Images Click Event Problem... Pin
kingletas13-Nov-07 12:51
kingletas13-Nov-07 12:51 
GeneralRe: Images Click Event Problem... Pin
Luc Pattyn13-Nov-07 13:11
sitebuilderLuc Pattyn13-Nov-07 13:11 
GeneralRe: Images Click Event Problem... Pin
kingletas13-Nov-07 14:58
kingletas13-Nov-07 14:58 
QuestionImporting Extreamly Large Files Pin
jasper01813-Nov-07 11:58
jasper01813-Nov-07 11:58 
GeneralRe: Importing Extreamly Large Files Pin
jasper01813-Nov-07 12:46
jasper01813-Nov-07 12:46 
QuestionDateTime Compare Problem Pin
dataminers13-Nov-07 11:12
dataminers13-Nov-07 11:12 
AnswerRe: DateTime Compare Problem Pin
Christian Graus13-Nov-07 11:35
protectorChristian Graus13-Nov-07 11:35 
GeneralRe: DateTime Compare Problem Pin
dataminers13-Nov-07 11:45
dataminers13-Nov-07 11:45 
AnswerRe: DateTime Compare Problem Pin
Bino B13-Nov-07 21:44
Bino B13-Nov-07 21:44 
QuestionTo make button's backgroundimage enabled Pin
omegazafer13-Nov-07 11:02
omegazafer13-Nov-07 11:02 
GeneralRe: To make button's backgroundimage enabled Pin
omegazafer13-Nov-07 12:04
omegazafer13-Nov-07 12:04 
GeneralRe: To make button's backgroundimage enabled Pin
omegazafer13-Nov-07 13:18
omegazafer13-Nov-07 13:18 
QuestionCustom Pocket PC sync Pin
DaveyM6913-Nov-07 9:38
professionalDaveyM6913-Nov-07 9:38 
AnswerRe: Custom Pocket PC sync Pin
Vasudevan Deepak Kumar13-Nov-07 20:21
Vasudevan Deepak Kumar13-Nov-07 20:21 

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.