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

C#

 
QuestionWEIRD problem with CPU 40%-50% in an application. Pin
Green Fuze10-Aug-08 5:23
Green Fuze10-Aug-08 5:23 
QuestionDynamic Instantiation of Classes. Pin
dudedotnet10-Aug-08 5:06
dudedotnet10-Aug-08 5:06 
AnswerRe: Dynamic Instantiation of Classes. Pin
User 665810-Aug-08 5:13
User 665810-Aug-08 5:13 
AnswerRe: Dynamic Instantiation of Classes. Pin
Guffa10-Aug-08 6:35
Guffa10-Aug-08 6:35 
AnswerRe: Dynamic Instantiation of Classes. Pin
PIEBALDconsult10-Aug-08 7:03
mvePIEBALDconsult10-Aug-08 7:03 
QuestionGraphics.DrawImage Problem Pin
#realJSOP10-Aug-08 4:57
professional#realJSOP10-Aug-08 4:57 
AnswerRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 5:21
Guffa10-Aug-08 5:21 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 5:39
professional#realJSOP10-Aug-08 5:39 
Guffa wrote:
There is no such overload.


Well, I coulda sworn I saw that overload. Looking again, it's not there.


Guffa wrote:
That's not surprising at all. Floating point values are not intended to be exact. You should use an integer value for the loop, and calculate the alpha value from that.


Well Sparky, I tried that and I still get the wierded out values (and I kinda figured I'd get them - I'm not new at this floating point stuff).



Guffa wrote:
ry to use an overload where you specify the coordinates as integers instead of floats, so that you don't risk getting any scaling when you draw the image.


I changed to the appropriate DrawImage() function, but no joy. I even tried Invalidate(with image rectangle), but that doesn't seem to help at all.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 6:37
Guffa10-Aug-08 6:37 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:25
professional#realJSOP10-Aug-08 23:25 
AnswerRe: Graphics.DrawImage Problem Pin
User 665810-Aug-08 5:46
User 665810-Aug-08 5:46 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:29
professional#realJSOP10-Aug-08 23:29 
QuestionThe assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 4:27
ezazazel10-Aug-08 4:27 
QuestionRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
Mark Salsbery10-Aug-08 9:02
Mark Salsbery10-Aug-08 9:02 
AnswerRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 9:39
ezazazel10-Aug-08 9:39 
QuestionUpdating textbox from class running in another thread Pin
__Leeloo__10-Aug-08 2:51
__Leeloo__10-Aug-08 2:51 
AnswerRe: Updating textbox from class running in another thread Pin
Green Fuze10-Aug-08 5:11
Green Fuze10-Aug-08 5:11 
GeneralRe: Updating textbox from class running in another thread Pin
PIEBALDconsult10-Aug-08 7:18
mvePIEBALDconsult10-Aug-08 7:18 
QuestionHow to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 0:43
hdv21210-Aug-08 0:43 
AnswerRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:01
mentorWendelius10-Aug-08 1:01 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:06
hdv21210-Aug-08 1:06 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:19
mentorWendelius10-Aug-08 1:19 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:49
hdv21210-Aug-08 1:49 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 2:13
mentorWendelius10-Aug-08 2:13 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 2:29
hdv21210-Aug-08 2:29 

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.