Click here to Skip to main content
15,886,860 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I have designed a SDI application to display a bitmap image(1024x768). In the bottom and right sides of the displayed bitmap image there is a row and column of white pixels which are not there in the original bitmap image(I have checked this in paint). I have no clue where it is coming from. To be complete, the image is displayed in a view object derived from CSrollview.
The scroll size is set as:
C#
void CCreateGratingsView::OnInitialUpdate()
{
    CScrollView::OnInitialUpdate();
    SetScrollSizes (MM_TEXT, sizeTotal);
}


Please help. Thanks in advance,
-Danny
Posted
Comments
Chris Reynolds (UK) 18-Feb-13 8:32am    
I've no idea but it isn't something daft where a rectangle is sized have a top left of (0,0) and a bottom right of (1024, 768) rather than a width of 1024 and height of 768 as the former would give you a bonus pixel. Without more of your code it is difficult to tell, but that sort of thing has caught me before.
Manfred Rudolf Bihy 18-Feb-13 10:23am    
That's what I just thought too. If it is exactly one row and one column then it sounds like the usual off by one error here! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900