Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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:
Has a Patch: no Platform: All


The following line is recorded in a BPicture:

BRect frame(0, 0, 100, 30); view->StrokeLine(BPoint(frame.left,, 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

Attachments (1)

PictureTests.png (30.0 KB ) - added by laplace 12 years ago.
Screenshot of FlattenPictureTest application.

Download all attachments as: .zip

Change History (4)

by laplace, 12 years ago

Attachment: PictureTests.png added

Screenshot of FlattenPictureTest application.

comment:1 by jackburton, 12 years ago

Owner: changed from axeld to jackburton

comment:2 by stippi, 12 years ago

Resolution: fixed
Status: newclosed

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.

comment:3 by laplace, 12 years ago

Verified. Thank you.

Note: See TracTickets for help on using tickets.