Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralVersion of DLLs Pin
Anonymous12-Aug-05 14:26
Anonymous12-Aug-05 14:26 
GeneralRe: Version of DLLs Pin
AETaylor12-Aug-05 23:29
AETaylor12-Aug-05 23:29 
GeneralRe: Version of DLLs Pin
kuntal4110127-Apr-12 12:13
kuntal4110127-Apr-12 12:13 
Generalam a beginner and need good beginners toturials HELP ME!! Pin
medo_C#man12-Aug-05 13:40
medo_C#man12-Aug-05 13:40 
GeneralRe: am a beginner and need good beginners toturials HELP ME!! Pin
Jon Sagara12-Aug-05 14:23
Jon Sagara12-Aug-05 14:23 
GeneralRe: am a beginner and need good beginners toturials HELP ME!! Pin
Vasudevan Deepak Kumar14-Aug-05 2:36
Vasudevan Deepak Kumar14-Aug-05 2:36 
Questioncan i drow curve in c# interface Pin
malak nour12-Aug-05 7:04
malak nour12-Aug-05 7:04 
AnswerRe: can i drow curve in c# interface Pin
Judah Gabriel Himango12-Aug-05 8:46
sponsorJudah Gabriel Himango12-Aug-05 8:46 
AnswerRe: can i drow curve in c# interface Pin
[Marc]12-Aug-05 12:12
[Marc]12-Aug-05 12:12 
Generaldownloading Pin
Kimocat12-Aug-05 6:32
Kimocat12-Aug-05 6:32 
GeneralRe: downloading Pin
Alomgir Miah12-Aug-05 7:05
Alomgir Miah12-Aug-05 7:05 
GeneralRe: downloading Pin
Judah Gabriel Himango12-Aug-05 8:47
sponsorJudah Gabriel Himango12-Aug-05 8:47 
GeneralChanging the 'invalid' area from within OnPaint handler Pin
roel_12-Aug-05 6:17
roel_12-Aug-05 6:17 
GeneralAlign ColumnHeader Text Pin
zaboboa12-Aug-05 5:44
zaboboa12-Aug-05 5:44 
GeneralRe: Align ColumnHeader Text Pin
ToddHileHoffer12-Aug-05 7:18
ToddHileHoffer12-Aug-05 7:18 
GeneralRe: Align ColumnHeader Text Pin
zaboboa12-Aug-05 7:31
zaboboa12-Aug-05 7:31 
GeneralUser Control event raising Pin
Rizwan Bashir12-Aug-05 5:26
Rizwan Bashir12-Aug-05 5:26 
GeneralPictureBox properties need to help Pin
malak nour12-Aug-05 5:12
malak nour12-Aug-05 5:12 
GeneralRe: PictureBox properties need to help Pin
Libor Tinka12-Aug-05 6:39
Libor Tinka12-Aug-05 6:39 
GeneralRe: PictureBox properties need to help Pin
Kimocat12-Aug-05 6:54
Kimocat12-Aug-05 6:54 
GeneralExport from textbox to external file Pin
Code Toad12-Aug-05 4:48
Code Toad12-Aug-05 4:48 
GeneralRe: Export from textbox to external file Pin
Guffa12-Aug-05 5:47
Guffa12-Aug-05 5:47 
GeneralRe: Export from textbox to external file Pin
Code Toad12-Aug-05 9:04
Code Toad12-Aug-05 9:04 
GeneralScale and Transform Location Pin
GoodQuestion12-Aug-05 4:42
GoodQuestion12-Aug-05 4:42 
GeneralRe: Scale and Transform Location Pin
Werdna12-Aug-05 9:17
Werdna12-Aug-05 9:17 
All transformation you do are composite of each other.
If you translate and then scale, then the translate will also be scaled.
To get your desired effect, divide you translate by your scale:
float fMidPointX = nPanelWidth/2;
float fMidPointY = nPanelHeight/2;
e.Graphics.TranslateTransform(fMidPointX/7f,-fMidPointY/7f);
e.Graphics.ScaleTransform(7.0f,7.0f);
e.Graphics.DrawPath(new Pen(Color.Black, .03f),grfxPath);

your pen will also be scaled, so instead of now being 0.03f, it will be 0.21f

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.