Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
QuestionAUDIO frequency per second ? Pin
sana1726-Oct-08 4:01
sana1726-Oct-08 4:01 
AnswerRe: AUDIO frequency per second ? Pin
sana1726-Oct-08 4:08
sana1726-Oct-08 4:08 
GeneralRe: AUDIO frequency per second ? Pin
Shyam Bharath27-Oct-08 0:35
Shyam Bharath27-Oct-08 0:35 
AnswerRe: AUDIO frequency per second ? Pin
Mark Churchill26-Oct-08 13:37
Mark Churchill26-Oct-08 13:37 
QuestionTabcontrol type editor control Pin
Chris Copeland26-Oct-08 3:44
mveChris Copeland26-Oct-08 3:44 
QuestionSMO on 64-bit machine Pin
Rafone26-Oct-08 3:36
Rafone26-Oct-08 3:36 
AnswerRe: SMO on 64-bit machine Pin
#realJSOP26-Oct-08 4:27
professional#realJSOP26-Oct-08 4:27 
QuestionProblem Transforming ClipRectangle When Painting Pin
TheCloudlessSky26-Oct-08 2:06
TheCloudlessSky26-Oct-08 2:06 
Hello All Smile | :) ,

I have a Matrix which transforms the Graphics object during the OnPaint event handler to "zoom in/out" of a Panel that I have depending on this matrix.

I want to Invalidate() a specific region that is of absolute coordinates (relative to the control though). When the OnPaint method is called, I want to be able to set the transformation on the Graphics object and then paint a rectangle around the e.ClipRectangle region. Here's the problem: when you perform Graphics.DrawRectangle for the ClipRectangle AFTER it has been transformed, the rectangle is transformed and is now RELATIVE to the transformed Graphics object (and therefore translated and resized by the zoom scale). How can I transform the ClipRectangle such that it is the "same size and location" as the absolute rectangle? I basically want to inflate/deflate it depending on the zoom. This is so that it can be drawn and used to perform hit testing AFTER the transformation. I have several "shapes" that I want to make sure are INSIDE of the invalidated region, but the only way to do this is to transform the ClipRectangle.

I know this is a bit confusing so if you need more explanation, let me know.

Cheers!
QuestionImage compression Pin
ALAQUNAIBI25-Oct-08 21:52
ALAQUNAIBI25-Oct-08 21:52 
AnswerRe: Image compression Pin
User 665825-Oct-08 22:21
User 665825-Oct-08 22:21 
GeneralRe: Image compression Pin
ALAQUNAIBI26-Oct-08 0:36
ALAQUNAIBI26-Oct-08 0:36 
GeneralRe: Image compression Pin
Guffa26-Oct-08 1:42
Guffa26-Oct-08 1:42 
GeneralRe: Image compression Pin
Matty2226-Oct-08 3:12
Matty2226-Oct-08 3:12 
GeneralRe: Image compression Pin
Guffa26-Oct-08 11:03
Guffa26-Oct-08 11:03 
QuestionHow to work with Windows message queue in C#.Net 2005? Pin
Mehral25-Oct-08 15:58
Mehral25-Oct-08 15:58 
AnswerRe: How to work with Windows message queue in C#.Net 2005? Pin
Furty25-Oct-08 16:16
Furty25-Oct-08 16:16 
QuestionWhy *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Furty25-Oct-08 15:39
Furty25-Oct-08 15:39 
AnswerRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Meer Osman Ali25-Oct-08 19:51
Meer Osman Ali25-Oct-08 19:51 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) PinPopular
Furty25-Oct-08 20:38
Furty25-Oct-08 20:38 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Meer Osman Ali25-Oct-08 21:26
Meer Osman Ali25-Oct-08 21:26 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Furty25-Oct-08 21:32
Furty25-Oct-08 21:32 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Meer Osman Ali25-Oct-08 21:50
Meer Osman Ali25-Oct-08 21:50 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Pete O'Hanlon26-Oct-08 10:04
mvePete O'Hanlon26-Oct-08 10:04 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Luc Pattyn26-Oct-08 10:42
sitebuilderLuc Pattyn26-Oct-08 10:42 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Pete O'Hanlon26-Oct-08 10:47
mvePete O'Hanlon26-Oct-08 10:47 

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.