Why is the bitmap not being displayed on the screen of the emulator (although there is no error)? It does not fade either. I used double buffering because using CWindowGc directly causes the screen to flicker (on 3650 and 7650 phones). Could you please point out to me where i did something wrong?
It's a pointer to windows session. It's a member of CAppView framework . Or you can get it from EikonEnv iEikonEnv->WsSession().Flush() . Flush() send command to windows server to perform all commands (bitblt's etc.) in queue now.
Thank you for helping me.. bu it still does not draw the bitmap.. i dont understand why my code does not work when i just copied some of it from the graphics example of the sdk.. do you think i should try it on the phone to test it out?
im really confused, the graphics example of the sdk works perfectly on the emulator, but my code does not.
After looking at your posts, I was able to make my offscreen bitmap work. My caveats were: 1. I had to move my bitmap, device, context pointer declarations to my view class; 2. I was using TSize() to create my bitmap, it worked when I used Rect().Size() instead;
thanks again for your contributions, I hope to be able to help likewise....
After looking at your posts, I was able to make my offscreen bitmap work. My caveats were: 1. I had to move my bitmap, device, context pointer declarations to my view class; 2. I was using TSize() to create my bitmap, it worked when I used Rect().Size() instead;
thanks again for your contributions, I hope to be able to help likewise....
CHeers!
hey, i tried also moving my bitmap, device and context pointer declaration in view class but when i run my app, still no image appears.. i used also Rect().Size()..i even put forward declarations on each class.. but still nothing appears.. ..can u give me some of ur codes please so i can try to figure out what's lacking in my code....thanks in advance! ..any
Hi,
RyuManila can you please share your code snippet which you have used for the drawing offscreen bitmaps.
I have tried to create a bitmap and draw some text into it, but when i try to blit this bitmap onto my control only a white screen is being drawn instead of the created bitmap. i tried to save the bitmap which i have created and check the file, but even that doesnt help. It would be good if you share your view and container files.
Forum posts: 115
If you are, try add iClient.Flush() after blitting to gc, may be it would help...
CellaGameS.com
Forum posts: 51
thanks!
Forum posts: 115
Does it help ?
CellaGameS.com
Forum posts: 51
Thank you for helping me.. bu it still does not draw the bitmap..
im really confused, the graphics example of the sdk works perfectly on the emulator, but my code does not.
thanks!
Forum posts: 26
// Create the off screen bitmap and device / gc
iOffScreenBitmap = NBitmapMethods::CreateBitmapL(Rect().Size(),KColourDepth);
iOffScreenBitmapDevice = NBitmapMethods::CreateBitmapDeviceL(*iOffScreenBitmap);
iOffScreenBitmapGc = NBitmapMethods::CreateGraphicsContextL(*iOffScreenBitmapDevice);
- the debuger says: unresolved external class (CFbsBitmap* ... ect)...
What sould I do to not get this error?
Cortii
by the way, i still have no luck at drawing offscreen bitmaps..
Forum posts: 115
CellaGameS.com
Forum posts: 1
After looking at your posts, I was able to make my offscreen bitmap work. My caveats were:
1. I had to move my bitmap, device, context pointer declarations to my view class;
2. I was using TSize() to create my bitmap, it worked when I used Rect().Size() instead;
thanks again for your contributions, I hope to be able to help likewise....
CHeers!
Forum posts: 67
After looking at your posts, I was able to make my offscreen bitmap work. My caveats were:
1. I had to move my bitmap, device, context pointer declarations to my view class;
2. I was using TSize() to create my bitmap, it worked when I used Rect().Size() instead;
thanks again for your contributions, I hope to be able to help likewise....
CHeers!
hey, i tried also moving my bitmap, device and context pointer declaration in view class but when i run my app, still no image appears..
i used also Rect().Size()..i even put forward declarations on each class.. but still nothing appears..
..can u give me some of ur codes please so i can try to figure out what's lacking in my code....thanks in advance!
..any
Forum posts: 1
Hi,
RyuManila can you please share your code snippet which you have used for the drawing offscreen bitmaps.
I have tried to create a bitmap and draw some text into it, but when i try to blit this bitmap onto my control only a white screen is being drawn instead of the created bitmap. i tried to save the bitmap which i have created and check the file, but even that doesnt help. It would be good if you share your view and container files.
Regards,
Sudhir
Forum posts: 1419
I highly doubt someone with a few posts on the forum, written 3.5 years ago will come back to share some code with you...
Maybe you should try start a new thread with a detailed question and someone might be able to help you.