Results 1 to 14 of 14

Thread: nghhh

  1. #1

    Thread Starter
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629

    nghhh

    http://www.vbforums.com/showthread.p...hreadid=291616

    since you guys in here does nothing but color blending all day...
    -= a peet post =-

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Double posting arn't we.......I have never used VB.NET.....sooo...ehh...


    What kind of file format is the picture? Can you show me the code when you are loading it and "Blting" it...

  3. #3
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    What format is the file in? Loading a image into VB (ImageList or PictureBox) at design time normally makes it get converted to a 24bit BMP which would mean no Alpha Channel .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4

    Thread Starter
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by NoteMe
    Double posting arn't we.......I have never used VB.NET.....sooo...ehh...


    What kind of file format is the picture? Can you show me the code when you are loading it and "Blting" it...
    I trippled it

    and no goddamn it .... don't want to do any blitting!

    I just want the damn MS component to work as they should for a change

    I tell the controls what image in the list they are suppose to use and then MS should take care of the rest.

    so... no code needed. just setting a couple of props and it SHOULD be ok grrrrrr.....
    -= a peet post =-

  5. #5

    Thread Starter
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Electroman
    What format is the file in? Loading a image into VB (ImageList or PictureBox) at design time normally makes it get converted to a 24bit BMP which would mean no Alpha Channel .
    the image is a png file.

    the image list says 32 bit in the image property...

    the picture in the post shows the same image, one added to a imagelist with image prop set to 32 bit, then this is loaded onto a button. the second one is added to the button directly in the image property, and it looks ok to me.

    what am I missing here...

    I'm (nothing new in that )
    -= a peet post =-

  6. #6
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Wouldn't you need an alpha channel to blend it, and what are you blending it with?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  7. #7

    Thread Starter
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Hi Dw ,

    what do you mean ?

    The picture already has a alpha layer (or whaterver its called.)


    the Image list is capable of containing 32bits pictures... that is 24 bits for colours and 8 bits for alpha layer.... this picture is not loaded onto the button as it should (look at the picture in the post linked above)

    am I making sense at all here ?? this is all new to me, alpha layer and all that, but if I have understood it correctly, the alpha layer will make my graphics look smooth nomather what the colour of the background is....

    pleas explain if I totally misunderstood this
    -= a peet post =-

  8. #8
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    If you are trying to eliminate jaggies, I think you would want anti-aliasing. Unless I am mistaken, blending helps with effects like transparency.

    What is your final desired effect after you perform w/e you want to do?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  9. #9
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Posted by Darkwraith
    If you are trying to eliminate jaggies, I think you would want anti-aliasing. Unless I am mistaken, blending helps with effects like transparency.

    What is your final desired effect after you perform w/e you want to do?
    You did click the link in the first post .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  10. #10
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    the alpha layer will make my graphics look smooth
    anti-aliasing smoothes out edges. Blending gives the image transparency.

    Right now, I am just trying to figure out where is the blue is coming from (take a look at the blue surrounding the arrow and you will see that the arrow's shadow is blended with it)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  11. #11
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    The alpha channel he is using isn't just on or off its varrying. So where the blue is comming from is where it should be partly blended .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  12. #12
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    The alpha channel he is using isn't just on or off its varrying
    Yes, it should be varying. The alpha channel does not change the color of the image (It changes the result of the images being blended together.)

    The problem is that you have the color blue in it, so it is blending with something that is blue. The background is tan. Where is the blue coming from? Is your alpha being dictated by the blue?

    (Sorry, I have knowledge in blending but not too much in imagelists.)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  13. #13

    Thread Starter
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Thanks guys for taking the time....


    Negative 0 found what I was afraid of... (see the original post )

    its a bug in the image list.... goddamn MS does it again.... nggghghghghagksfajsdølfkaj dflakjsfl I hate them for this

    thanks again for spending time on me

    peet
    -= a peet post =-

  14. #14
    Hyperactive Member The Dutch Dude's Avatar
    Join Date
    Nov 2001
    Location
    Holland. Land of the Dutch. Home for me.
    Posts
    261
    The solution appearently

    I ran into this problem too, I don't know if you're still looking for a solution to this.
    I haven't personally tried it out yet, but will do so soon. Hope it helps.
    Obey the dragon thing. Or not. Or possibly just a bit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width