Click here to Skip to main content
15,925,440 members
Home / Discussions / C#
   

C#

 
QuestionTcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 0:15
leslie wu1-Sep-08 0:15 
AnswerRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 2:10
leppie1-Sep-08 2:10 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 3:00
leslie wu1-Sep-08 3:00 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 3:02
leppie1-Sep-08 3:02 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 3:21
leslie wu1-Sep-08 3:21 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 3:25
leppie1-Sep-08 3:25 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 4:59
leslie wu1-Sep-08 4:59 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 5:37
leppie1-Sep-08 5:37 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 6:02
leslie wu1-Sep-08 6:02 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 6:42
leppie1-Sep-08 6:42 
QuestionJPEG compression, HELP ME! Pin
thucbv31-Aug-08 23:44
thucbv31-Aug-08 23:44 
AnswerRe: JPEG compression, HELP ME! Pin
Manas Bhardwaj1-Sep-08 0:27
professionalManas Bhardwaj1-Sep-08 0:27 
AnswerRe: JPEG compression, HELP ME! Pin
blackjack21501-Sep-08 1:34
blackjack21501-Sep-08 1:34 
GeneralRe: JPEG compression, HELP ME! Pin
thucbv1-Sep-08 7:38
thucbv1-Sep-08 7:38 
GeneralRe: JPEG compression, HELP ME! Pin
blackjack21501-Sep-08 7:44
blackjack21501-Sep-08 7:44 
QuestionTracing Invalidate calls (Windows Forms) Pin
Jon Hulatt31-Aug-08 22:58
Jon Hulatt31-Aug-08 22:58 
AnswerRe: Tracing Invalidate calls (Windows Forms) Pin
Frank Horn31-Aug-08 23:58
Frank Horn31-Aug-08 23:58 
AnswerRe: Tracing Invalidate calls (Windows Forms) Pin
leppie1-Sep-08 2:11
leppie1-Sep-08 2:11 
GeneralRe: Tracing Invalidate calls (Windows Forms) Pin
Jon Hulatt1-Sep-08 2:15
Jon Hulatt1-Sep-08 2:15 
QuestionHow do I draw a single color transparently? Pin
Megidolaon31-Aug-08 22:47
Megidolaon31-Aug-08 22:47 
AnswerRe: How do I draw a single color transparently? Pin
oobimoo31-Aug-08 23:29
oobimoo31-Aug-08 23:29 
GeneralRe: How do I draw a single color transparently? Pin
Megidolaon1-Sep-08 22:56
Megidolaon1-Sep-08 22:56 
QuestionDrawing a big image to real coordinates Pin
ianhunt0131-Aug-08 22:39
ianhunt0131-Aug-08 22:39 
Hi,

I have got a big topographical jpg file that I want to display in a form on a picturebox in its real coordinates that ranges X from 50 000 to 75 000 and Y from 2 800 000 to 2 825 000. this will make it very easy for me to get the mouse coords in real coords as the user invokes the Mousedown event. It will also make it easier for me to draw real features in its real coordinates.

I have got the code:

Image image = Image.FromFile(@"C:\Images\2529DA.jpg");
Pen myPen = new Pen(Color.Black);         
Graphics formGraphics = this.picGrid.CreateGraphics();
formGraphics.Clear(picGrid.BackColor);

formGraphics.DrawImage(image, 0, 0, 1000, 1000);


This shows the topomap nicely on the screen but with the local picturebox coords from 0 to 1000. If I change the code to

formGraphics.DrawImage(image, 50000, 2800000, 25000, 25000);


This previous code then puts the map WAY offscreen to the south-east !

I tried fiddling with the following code but no luck.

formGraphics.DrawImageUnscaled(image,0, 0);
formGraphics.DrawImageUnscaledAndClipped(image, rect1);


please help !

cheers

Ian
AnswerRe: Drawing a big image to real coordinates Pin
oobimoo1-Sep-08 0:18
oobimoo1-Sep-08 0:18 
GeneralRe: Drawing a big image to real coordinates Pin
ianhunt011-Sep-08 1:03
ianhunt011-Sep-08 1:03 

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.