[Top][All Lists]

[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: Gecko/20060911 SUSE/ Firefox/


                 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



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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]