loading cursor in allegro

This is a discussion on loading cursor in allegro within the Game Programming forums, part of the General Programming Boards category; Hi! Now I started learning Allegro and I must say it's pretty cool. My problem with loading cursor is next. ...

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    loading cursor in allegro

    Hi!

    Now I started learning Allegro and I must say it's pretty cool.

    My problem with loading cursor is next. Please take a look at this picture. How can I get rid off that grey background so that, only the hand will be seen?
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    Picture:
    Attached Images Attached Images  
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    I think you need to fill the grey areas with a transparent color. If you are using 8-bit color depth it's usually black, and for 15-bit and higher it's magic pink(R255,G0,B255);
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  4. #4
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    Hmmm, another stupid question. How do I set the color to transparent? I'm using ACD FotoCanvas 2.0.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Never heard of ACD FotoCanvas 2.0 before. It's simple as loading your cursor into a program like MS Paint and floodfill the grey areas with black.
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Loading Bitmaps in Allegro
    By LiNeAr in forum Game Programming
    Replies: 1
    Last Post: 08-15-2005, 05:12 PM
  2. Replies: 4
    Last Post: 12-11-2004, 02:36 PM
  3. Allegro help! EASY LOADING OF BMP class
    By Blizzarddog in forum Game Programming
    Replies: 3
    Last Post: 11-25-2003, 07:50 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-21-2002, 12:35 AM
  5. trouble loading bitmaps in allegro
    By bobish in forum Game Programming
    Replies: 10
    Last Post: 02-28-2002, 06:07 PM

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