Click here to Skip to main content
15,909,091 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: DirectX, OpenGL, WPF or XNA? Pin
Uri913-Sep-08 2:19
Uri913-Sep-08 2:19 
GeneralRe: DirectX, OpenGL, WPF or XNA? Pin
Pete O'Hanlon4-Sep-08 10:49
mvePete O'Hanlon4-Sep-08 10:49 
QuestionHow can I have OpenGL in MFC SDI and Dialog at the same time Pin
Member 44253871-Sep-08 3:16
Member 44253871-Sep-08 3:16 
AnswerRe: How can I have OpenGL in MFC SDI and Dialog at the same time Pin
Tim Craig1-Sep-08 19:16
Tim Craig1-Sep-08 19:16 
GeneralRe: How can I have OpenGL in MFC SDI and Dialog at the same time Pin
Member 44253872-Sep-08 0:28
Member 44253872-Sep-08 0:28 
GeneralRe: How can I have OpenGL in MFC SDI and Dialog at the same time Pin
Tim Craig2-Sep-08 18:11
Tim Craig2-Sep-08 18:11 
GeneralRe: How can I have OpenGL in MFC SDI and Dialog at the same time Pin
Member 44253874-Sep-08 7:51
Member 44253874-Sep-08 7:51 
QuestionDrawing a big topographic map in its own coordinates Pin
ianhunt0131-Aug-08 23:36
ianhunt0131-Aug-08 23:36 
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.DrawImageUnscaledimage,0,0);
formGraphics.DrawImageUnscaledAndClipped(image, rect1);



please help !

Thanks

Ian
QuestionGif animation Pin
The Only Nock28-Aug-08 13:14
The Only Nock28-Aug-08 13:14 
AnswerRe: Gif animation Pin
Mark Salsbery29-Aug-08 11:01
Mark Salsbery29-Aug-08 11:01 
GeneralRe: Gif animation Pin
The Only Nock31-Aug-08 15:56
The Only Nock31-Aug-08 15:56 
GeneralRe: Gif animation Pin
Mark Salsbery1-Sep-08 7:28
Mark Salsbery1-Sep-08 7:28 
QuestionDrawing failed? Pin
Tapio Grönfors28-Aug-08 1:19
Tapio Grönfors28-Aug-08 1:19 
AnswerRe: Drawing failed? Pin
Mark Salsbery28-Aug-08 6:21
Mark Salsbery28-Aug-08 6:21 
GeneralRe: Drawing failed? Pin
Tapio Grönfors28-Aug-08 19:05
Tapio Grönfors28-Aug-08 19:05 
GeneralRe: Drawing failed? Pin
Mark Salsbery29-Aug-08 5:14
Mark Salsbery29-Aug-08 5:14 
AnswerRe: Drawing failed? Pin
Pete O'Hanlon4-Sep-08 10:48
mvePete O'Hanlon4-Sep-08 10:48 
QuestionPiggyback image /overlapped image Pin
sujtha27-Aug-08 23:12
sujtha27-Aug-08 23:12 
QuestionRe: Piggyback image /overlapped image Pin
Mark Salsbery28-Aug-08 6:20
Mark Salsbery28-Aug-08 6:20 
Questionicon file contaning more than one version of the icon Pin
The Only Nock26-Aug-08 17:35
The Only Nock26-Aug-08 17:35 
AnswerRe: icon file contaning more than one version of the icon Pin
The Only Nock14-Sep-08 6:41
The Only Nock14-Sep-08 6:41 
QuestionDrawing to a checkBox (button mode) using Graphics Pin
The Only Nock26-Aug-08 16:14
The Only Nock26-Aug-08 16:14 
AnswerRe: Drawing to a checkBox (button mode) using Graphics Pin
The Only Nock14-Sep-08 6:39
The Only Nock14-Sep-08 6:39 
QuestionGraphics programming suggestion is needed Pin
ulucky26-Aug-08 1:37
ulucky26-Aug-08 1:37 
AnswerRe: Graphics programming suggestion is needed Pin
Mark Salsbery26-Aug-08 6:02
Mark Salsbery26-Aug-08 6:02 

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.