#1381 closed bug (fixed)
[Unflatten Picture] Pixel values differ in vertical line drawing
Reported by: | laplace | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The following line is recorded in a BPicture:
BRect frame(0, 0, 100, 30); view->StrokeLine(BPoint(frame.left, frame.top), BPoint(frame.right, frame.bottom));
The picture is then drawn into a bitmap. Then the flattened and unflattened picture is also drawn into another bitmap. The two bitmaps are not pixel identical.
See FlattenPictureTest test application in src/tests/kits/interface/unflatten_picture/PictureTestCases.cpp http://svn.berlios.de/viewcvs/haiku/haiku/trunk/src/tests/kits/interface/flatten_picture/PictureTestCases.cpp?rev=21888&view=markup
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | PictureTests.png added |
---|
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Appears to be fixed in hrev21895. I assume the bitmap still had the contents from the previous drawing, and drawing another line at the same spot produced the doubled anti-aliasing. Now view accepting bitmaps are cleared to white by the app_server. When the test is run, it does not see a difference in the bitmaps anymore.
Screenshot of FlattenPictureTest application.