• 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
Re: Image Value Transformer setting image alpha less than 1.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Value Transformer setting image alpha less than 1.0


  • Subject: Re: Image Value Transformer setting image alpha less than 1.0
  • From: Ken Ferry <email@hidden>
  • Date: Mon, 14 Jun 2010 03:12:21 -0700

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

  • Follow-Ups:
    • Re: Image Value Transformer setting image alpha less than 1.0
      • From: Gustavo Pizano <email@hidden>
References: 
 >Image Value Transformer setting image alpha less than 1.0 (From: Gustavo Pizano <email@hidden>)
 >Re: Image Value Transformer setting image alpha less than 1.0 (From: Graham Cox <email@hidden>)
 >Re: Image Value Transformer setting image alpha less than 1.0 (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: NSControl objects on a custom view
  • Next by Date: Re: Image Value Transformer setting image alpha less than 1.0
  • Previous by thread: Re: Image Value Transformer setting image alpha less than 1.0
  • Next by thread: Re: Image Value Transformer setting image alpha less than 1.0
  • Index(es):
    • Date
    • Thread