[Photoshop] Assigning transparency based on color values

This is a discussion on [Photoshop] Assigning transparency based on color values within the Tech Board forums, part of the Community Boards category; I have a 32 bit image I wish to import into photoshop. It's an anti-aliased 2d black circle. Currently it's ...

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,487

    [Photoshop] Assigning transparency based on color values

    I have a 32 bit image I wish to import into photoshop. It's an anti-aliased 2d black circle. Currently it's opaque and sitting on a white background.

    The idea is to make the background transparent. Now, I know there are other options. But I'm trying to explore the possibility of setting individual pixels transparency level based on their B value in the HSB color mode or some other more appropriate method that translates the anti-alias rim into several grades of transparent pixels. On this simple case, white would translate to completely transparent and black to completely opaque, with all shades of grey in between gaining their appropriate transparency levels.

    Incidentally, this goes hand-in-hand with the possibility of building some sort of filter that I can adjust to other things, like setting transparency levels based on color values...

    Being somewhat brain damaged on these matters, can you give me a few pointers on where to start?
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    You can select based on colours, and then use the selection to make the alpha channel

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21