• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
weird drawing problem with NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weird drawing problem with NSImage


  • Subject: weird drawing problem with NSImage
  • From: Matt Thomas <email@hidden>
  • Date: Fri, 12 Apr 2002 23:43:51 -0400

Hi, I'm having a weird drawing problem with NSImage. I have a picture I am drawing in the bound of a view. In my drawing routine, I call:

imageRect.size = [unselectedBackground size];

[unselectedBackground drawInRect:bounds
fromRect:imageRect
operation:NSCompositeSourceOver
fraction:1.0 ];

unselectedBackground is an NSImage. A simple .tiff for the background of the view
bounds is the bounds of the view
imageRect is the rectangle for the image.

When I first draw the view, everything is drawn perfectly. Then when I resize the window, the image is redrawn, it's top, bottom, and sides lose a pixel. This is odd because the size of the view doesn't change.

Is this a known bug, or have I done something wrong?

-Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: ever felt like a complete BONZO??
  • Next by Date: ANN: GoogleSearch v0.1
  • Previous by thread: RE: File copying not copying...
  • Next by thread: ANN: GoogleSearch v0.1
  • Index(es):
    • Date
    • Thread