Results 1 to 10 of 10

Thread: UnDelphiX and transparent colors

  1. #1

    UnDelphiX and transparent colors

    Sorry for making these..


    When I draw pictures from UnDelphiX's imagelist- component, I usually use normal draw(surface,x,y,patternI)- method, but sometimes I need the others, for example DrawSub, or DrawAlpha, etc. and when I use them, the transparent colors won't work. They DO work with normal Draw- method.

    What solves this problem?
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  2. #2

    UnDelphiX and transparent colors

    Do you use HW acceleration or not?
    Ijcro.

  3. #3

    UnDelphiX and transparent colors

    Quote Originally Posted by ijcro
    Do you use HW acceleration or not?
    Yes, I use it.

    Haven't got solved the problem, causes me headache.
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  4. #4

    UnDelphiX and transparent colors

    Can I see your code and sample of picture?
    Ijcro.

  5. #5

    UnDelphiX and transparent colors

    In deep inside, the code is simple; I'm just using the DrawAlpha- method.


    TPictureList loads it's items in the beginning from graph folder and takes the transparent color from picture's pixels [0,0], like usually. And images' backgrounds are totally the right and solid color, checked in many ways. So this SHOULd work, everything's ok.

    Is there something I dont know? With normal Draw or StretchDraw etc. those works well but DrawAlpha-, DrawSub- and DrawAdd- methods screws it up.. :(
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  6. #6

    UnDelphiX and transparent colors

    you gonna have to supply small demo

  7. #7

    UnDelphiX and transparent colors

    It is very funny, but it is true
    Ijcro.

  8. #8

    UnDelphiX and transparent colors

    Umm. Yea. I got it working, just changed all the backgrounds of images (BMP) into black and it worked, mm, for a while, yesterday it again started to fail.. and FPS dropped and thousands of other problems came up, also some weird errors appeared in DXInput.pas etc., didn't help to reinstall it, also booted whole computer but nothing works. Caused me a headache.

    I just arrived home and tried to solve the problem but nothing seems to help, and, accidentally, I found some web-site about Asphyre and got excited of it, now I'll try to change DelphiX -> Asphyre. It made quite an impression :)


    Long live DelphiX! It served me all the way here.
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  9. #9

    Re: UnDelphiX and transparent colors

    Eureka!!! Thanks....your little fix of using a black trans colour fixed my problem in the following thread!

    http://www.pascalgamedevelopment.com...;topicseen#new


  10. #10

    Re: UnDelphiX and transparent colors

    Bumping old threads is bad...

    DelphiX doesn't use TColor as transparent color, therefore clGreen or other will not work. However clBlack equals to 0 which will work. There are functions in for example TDirectDrawSurface to find out DelphiX color from TColor.

Bookmarks

Posting Permissions

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