[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18260] NSBitmapImage is offset using art backend
From: |
Mark Tracy |
Subject: |
[bug #18260] NSBitmapImage is offset using art backend |
Date: |
Sun, 12 Nov 2006 07:57:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 SUSE/1.5.0.7-1.5 Firefox/1.5.0.7 |
URL:
<http://savannah.gnu.org/bugs/?18260>
Summary: NSBitmapImage is offset using art backend
Project: GNUstep
Submitted by: tracy454
Submitted on: Sunday 11/12/2006 at 07:57
Category: Backend
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
I have been working on NSBitmapImage, and in the course of testing other
things, I see that the following code gives a mis-aligned image:
[aView lockFocus];
NSBitmapImageRep *imgRep = [[NSBitmapImageRep alloc]
initWithFocusedViewRect: [aView bounds]];
[aView unlockFocus];
NSData *tiffRep = [imgRep TIFFRepresentation];
The image is off by 5 pixels in both the X and Y coordinates. That is a very
strange number for the offset. The sample image happens to be a slider
control with a black border.
This problem did not occur with gnustep-back-0.11.0, but appeared in
back-0.12 in the SVN. It only happens with the art backend, the xlib backend
works for both versions. (I can't build the cairo backend, or I would have
tested that too.) The bug occurs with my experimental GIF and JPEG code too.
System: gnustep-core svn rev 24050; Suse Linux 10.1; gcc 4.1
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 11/12/2006 at 07:57 Name: slider(art)(r24050).tif Size: 5kB
By: tracy454
sample image showing misalignment
<http://savannah.gnu.org/bugs/download.php?file_id=11235>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18260>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #18260] NSBitmapImage is offset using art backend,
Mark Tracy <=