\\ in image file path
Using Xp pro. English but localised keyboard.
Visual studio Express C++
Win32
I found a Ms gdi+ sample "Loading and Displaying Bitmaps."
In it was following code.
Image image(L"Grapes.jpg");
graphics.DrawImage(&image, 60, 10);
When I tried it here \\ was needed in path. Like this:
Image image(L"F:\jpegit\\2007.JPG");
graphics.DrawImage(&image, 60, 10);
Or even
Image image(L"c:\\20.JPG");
// Image image(L"F:\jpegit\\2007.JPG");
graphics.DrawImage(&image, 60, 10);
Rest of the program is a line drawing sample.
I know that old "feature" of \\ in top folder, but what is this. Is it
in my machine or what? Any info?
.
Relevant Pages
- Re: Canceling loading image into bitmap object
... To do this you would have to eschew the GDI+ loading routines and run your ... as long as you write a whole load of complex loading ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... (microsoft.public.dotnet.framework.drawing) - Re: GDI zoom
... in one line of code and without the additional dependency of GDI+. ... Similar tasks with bitmaps are very difficult in vb6. ... however trying to use this case as a reason ... There is a huge amount of added functionality. ... (microsoft.public.vb.general.discussion) - Re: Rapid gfx display Qs
... The loading time is proportional to the size of the ... I downloaded the GDI+ Type Library and I ran your code using the same 1280 x 720 pixel jpg image that has been used throughout this thread. ... On my machine it took an average of 98 milliseconds to load and display the 1280 x 720 jpeg, which is pretty much on a par with the standard VB6 LoadPicture method. ... (microsoft.public.vb.general.discussion) - Re: a newbie needed help on DIB and DirectShow
... > was not a Win App developer and so I didn't have much knowledge on GDI+. ... If you want to produce moving video on the screen then DirectShow is the ... allow you to build a graph showing Device Independant Bitmaps fery ... If you have a bitmap (DIB) in a file that you simply want to show on the ... (microsoft.public.win32.programmer.directx.video) - Re: Background effects
... > This is a function of bitmaps rather than GDI+. ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... (microsoft.public.dotnet.languages.csharp) |
|