Re: Bitmap restore

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





"Charlie" wrote:

On Sep 13, 2:11 pm, Satya <Sa...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Charlie" wrote:
On Sep 12, 3:33 pm, Satya <Sa...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi all, I want to display a image on LCD for a few seconds. So i am using
GetDC(), CreateCompatibleDC(), SelectObject(), BitBlt() etc to display the
image.
I want to restore the previous screen but unable to do that. Can any one
tell how to do that....

Thanks in advance...

Satya,

You don't provide much context for what you are doing. When you say
"previous screen" do you mean the current application's screen?
The main display? Sounds like you are using mfc or pure win32.
Grabbing an image of the current screen BEFORE you display your bitmap
should work, I would think. But we need more context.

Hi charlie,
Thanks for your reply & Sorry for insufficient information. The scenario is
like ....
My device is having LCD screen, on which .net based GUI is running for
perform the different operations. For user it will have keys to navigate from
one screen to other.
Now one operation is LCD test. In this test, user will have to press
predefined keys & device shall display predefined screens.
Till now every thing is ok. But at the end of the LCD test , device should
go back to the LCD test screen from where the LCD test has started. So that
device can do other operations.

My problem is i am not able to remove the displayed screen & go back to the
screen from where LCD test started.

Now i think, the whole scenario is clear & u can tell some solution.- Hide quoted text -

- Show quoted text -

Satya,

This sounds like a simple application issue. When the LCD test is
invoked, how do you display this test screen?
Are you invoking a platform utility or did you write the LCD test code
yourself?

cg


Ya u can say its a GUI application issue. I have written my own code to
display
patterns on the LCD. My code is

hDC = GetDC (NULL);

hdcMemory = CreateCompatibleDC( hDC );
hBmp = SHLoadDIBitmap(L"Some Defined Location");

SelectObject( hdcMemory, hBmp );
GetObject( hBmp, sizeof(BITMAP), &bmp );

BitBlt(hDC, 0, 0,bmp.bmWidth, bmp.bmHeight,hdcMemory,0, 0, SRCCOPY );

return 0;

Using the above code, i am able to display the image (stored at a defined
location) on the LCD screen.

LCD test shall be invoked from GUI application. In this test , defined image
should be displayed for fixed duration. After completion of test, it should
remove the displayed image & the control should return to GUI application for
further use.

But in my case, after displaying the image on the LCD i am not able to go
back to the GUI application.

.



Relevant Pages

  • Re: Who is working with the SAM9263?
    ... just to move windows, or handle overlapping windows. ... hardware to manage a display in a handheld device. ... so you can have pretty large screens without affecting the CPU ... you have up to 800 MB/s bandwidth to the memory. ...
    (comp.arch.embedded)
  • Re: Bitmap restore
    ... The main display? ... Now one operation is LCD test. ... predefined keys & device shall display predefined screens. ... Ya u can say its a GUI application issue. ...
    (microsoft.public.windowsce.embedded)
  • Re: What does your monitor show you?
    ... calibrated with Apple's Display Calibrator Assistant. ... Imac 23 screens seem great - my wife want me to dump my PC, ... Calibration won't deal with inconsistency in the ... 24" LCD on my system running at 1920x1200, and after calibration, it ...
    (rec.photo.digital.slr-systems)
  • Re: 1920x1080 how some programs (non-menu area) fonts are displayed
    ... My original post that I was replying to (along to VanguardLH who had ... satisfactory except for its vertical resolution. ... I surmise this 1680x1050 overfilling 22"/23" screens is because of the ... actual Display Area of a 22"/23" screen, most graphics cards (I use a nVidia ...
    (microsoft.public.windowsxp.general)
  • Re: F 9 problems to install
    ... I connected my former CRT to the new PC, and then I got a GUI screen - sort of. ... > It didn't halt - it switched to the GUI display, but> your monitor could not display the video it was ... But the installation itself was GUI-based, so that must have confused me into thinking that X windows was working. ... No screens found ...
    (Fedora)