Mantis - Squeak
Viewing Issue Advanced Details
6496 Morphic minor always 05-21-07 12:45 05-21-07 23:59
kks  
 
normal  
new 3.10  
open  
none    
none  
0006496: Morph image snapshot yields a blurred picture
Get a halo on a menu and shift-click the viewer icon. The resulting image is blurred (see attached image). If the image's extent is extended by 1@1, the blur goes away. The problem is seen on 3.9 and 3.10 on Linux, Mac and Windows VMs.
The following code is suspect:
Morph>>duplicateMorphImage: evt
        ..
        dup := self asSnapshotThumbnail withSnapshotBorder.
        dup bounds: self bounds.
        ..
Morphs add a 1px border along bottom-right to its underlying image forms, so I tried changing "self bounds" to "self fullBounds". The fix cleared the artifacts for menus and submenus. But for SystemWindows, it yields a Morph with an 1px extra line along the top. The (fullBounds origin y) appears to be less by 1px, so I am not sure if this is the right fix. Can some Morphic experts confirm this bug?
 ThumbnailImage.gif [^] (4,734 bytes) 05-21-07 12:45
 Morph-duplicateMorphImage.st [^] (449 bytes) 05-21-07 23:39

Notes
(0010738)
wiz   
05-21-07 18:57   
I am particular glad you found this one since it affects one of my contributions to 3dot9 and I would like to see it improved by removal of the error.

Yours in curiosity and service, --Jerome Peace
(0010739)
wiz   
05-21-07 23:59   
Uploaded Morph-duplicateMorphImage.st

which patches the method to use #fullbounds instead of #bounds.

Comments. As Subbu mentioned in his reports this fixes the immediate problem.

Yours in curiosity and service, --Jerome Peace