Re: Image Value Transformer setting image alpha less than 1.0
Re: Image Value Transformer setting image alpha less than 1.0
- Subject: Re: Image Value Transformer setting image alpha less than 1.0
- From: Gustavo Pizano <email@hidden>
- Date: Mon, 14 Jun 2010 12:16:08 +0200
Ken hi.
I have it checked on IB, so it shall return YES.
G.
On Jun 14, 2010, at 12:12 PM, Ken Ferry wrote:
>
>
> On Mon, Jun 14, 2010 at 2:16 AM, Gustavo Pizano <email@hidden> wrote:
> Hello Graham.
>
> So this is what I did, and its drawing ok.
>
> I subclasses the NSConllectionViewItem, in the copyWithzone method I weakly assigned self to its view (custom NSView also), then in the view subclass in the draw method I ask the controller (subclass of NSCollectionViewItem) for its representedObject and the valueForKey:@"avatar", which is the property of the entity.
>
> then I calculate the size and position where to draw the image, and I just draw it normally.
> the result.. full opacity.
>
> I still don't understand why when setting it in IB to a NSImageView it will set some opacity ...
>
> Does [imageView isEnabled] return NO?
>
> -Ken
>
>
> Gustavo
>
>
> On Jun 11, 2010, at 3:09 PM, Graham Cox wrote:
>
> >
> > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote:
> >
> >> any idea why Im not getting full opacity?
> >
> >
> > Opacity is neither an image nor an NSImageView property, it's applied when the image is drawn (unless the image itself has some inherent transparency). There's nothing in the posted code that would affect this, so the problem is coming from somewhere else. One possibility is the state of the current context when the NSImageView draws.
> >
> > To eliminate the transformer, what happens if you just load the image straight into the image view?
> >
> > (BTW, there's no such class as NSImageWell)
> >
> > --Graham
> >
> >
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden