-
March 7th, 2021, 08:31 PM
#1
bitBlt & scrolling issue
Hi,
and I have 0 , 0 instead of offsetx and offsety in the bitBlt, I get the following output;
If I uncomment the selectObject and use offsetx and offsety in the bitBlt, I get the following output;
The second image is of a bitmap that is being scrolled down.
I return TRUE in EraseBckgrnd.
How can I fix this? I literally have tried everything.
If I use nPosX and nPosY, only one bitmap is rendered on the screen.
All help is appreciated.
Last edited by PREFETCH0; March 8th, 2021 at 05:20 PM.
-
March 8th, 2021, 07:28 AM
#2
Re: bitBlt & scrolling issue
1
If the background is supposed to stay fixed while the text moves around on it, I would suggest that you maintain two separate bitmaps: one that contains the background image, and a second one that contains the text on a transparent background. Web Application Development Company
-
March 8th, 2021, 09:03 AM
#3
Re: bitBlt & scrolling issue
Originally Posted by yashnit
1
If the background is supposed to stay fixed while the text moves around on it, I would suggest that you maintain two separate bitmaps: one that contains the background image, and a second one that contains the text on a transparent background. Web Application Development Company
What text? that is part of the bitmap.
-
March 8th, 2021, 03:41 PM
#4
Re: bitBlt & scrolling issue
Originally Posted by PREFETCH0
Hi,
...
If I comment out;
Code:
m_hBmpOld = (HBITMAP)SelectObject(dcBuffer, m_hBmpNew);
and I have 0 , 0 instead of offsetx and offsety in the bitBlt, I get the following output;
https://hostr.co/file/970/g60huNooRd...t7.56.10PM.png
If I uncomment the selectObject and use offsetx and offsety in the bitBlt, I get the following output;
https://hostr.co/file/970/jnKBVc0AJx...t7.58.06PM.png
The second image is of a bitmap that is being scrolled down.
I return TRUE in EraseBckgrnd.
How can I fix this? I literally have tried everything.
If I use nPosX and nPosY, only one bitmap is rendered on the screen.
All help is appreciated.
1. Could you explain what you are trying to achieve (in words, not just in code!) and what works not as expected?
2. Please, attach your images to your post! See the Announcements, section "Information on posting:", subsection Attachments.
Victor Nijegorodov
-
March 8th, 2021, 04:25 PM
#5
Re: bitBlt & scrolling issue
Well, what works is that the bitmap is displayed, but there is a scrolling issue as seen in picture.
-
March 8th, 2021, 04:31 PM
#6
Re: bitBlt & scrolling issue
Originally Posted by PREFETCH0
Well, what works is that the bitmap is displayed, but there is a scrolling issue as seen in picture.
Sorry, but I don't trust the sites where you uploaded your pictures.
Victor Nijegorodov
-
March 8th, 2021, 05:19 PM
#7
Re: bitBlt & scrolling issue
Originally Posted by VictorN
Sorry, but I don't trust the sites where you uploaded your pictures.
Ok I’ll attach as images, but they were fairly large
-
March 9th, 2021, 02:16 AM
#8
Re: bitBlt & scrolling issue
Originally Posted by PREFETCH0
Ok I’ll attach as images, but they were fairly large
Then scale them to the reasonable size! MS Paint can do it pretty good and fast!
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|