• 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
Unwanted transparency in NSBezierPath?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unwanted transparency in NSBezierPath?


  • Subject: Unwanted transparency in NSBezierPath?
  • From: Steve <email@hidden>
  • Date: Sun, 2 Feb 2003 15:33:04 +0000

Hi,

I'm drawing simple, horizontal lines in to a subclass of NSImageView: in my drawRect method.

[[NSColor blackColor] set];
NSPoint start = NSMakePoint(10,10);
NSPoint end = NSMakePoint(110,10);
NSBezierPath *line = [NSBezierPath bezierPath];
[line setLineWidth:1.0];
[line moveToPoint:start];
[line lineToPoint:end];
[line stroke];

The problem is they are drawing semi-transparent ; I can tell because they look mid-grey, and gradually become black if I repeat the drawing 2 0r 3 times.


Also, they are drawing 2 pixels thick despite the [line lineToPoint:end] message;

Are there any graphics-context globals that could be overriding my code?

Thanks

Steve
_______________________________________________
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.

  • Follow-Ups:
    • Re: Unwanted transparency in NSBezierPath?
      • From: Christian Brunschen <email@hidden>
  • Prev by Date: Re: [Newbie] Finding the right information
  • Next by Date: PB and Custom Docs
  • Previous by thread: Re: Custom Controls
  • Next by thread: Re: Unwanted transparency in NSBezierPath?
  • Index(es):
    • Date
    • Thread