![]() |
CXTMemDC problem |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTMemDC problemPosted: 18 August 2007 at 11:48am |
|
I am using CXTMemDC to create a very large backbuffer which is 1503 by 15929 (32 bit colour) however it seems to have problems with this size, if I make a bit smaller it is fine ???
Is there a limit to the size of the:
m_bitmap .CreateCompatibleBitmap(m_pDC, m_rc.Width(), m_rc.Height());command that CXTMemDC uses internally, eg. limit on memory, width or height ?? |
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2007 at 2:37am |
|
Hello,
I don't think you really need such big bitmap to draw. Think about how to optimize it and create smaller bitmap that only visible on screen.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2007 at 5:47am |
|
We were working on a better solution but just wondered if there was a limited to size of bitmaps that one can allocate, as would be interesting to know :)
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2007 at 5:59am |
|
Hello, MSDN says
Windows 95/98: The created bitmap cannot exceed 16MB in size. and nothing about 2000/XP. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2007 at 6:15am |
|
Yeah we found that, but on 2000/XP/VISTA it is stranger as more inconsistant :) |
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2007 at 4:42pm |
|
Ok thanks for help but we have now make a dynamic scroll area so it uses minimal device context space, once again cheers
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |