Colors

Hi,
I'd like to know how colors are coded in different graphic modes
(8,16,24,32).
In 32 bits, how can i transmit values to variables, knowing thet Pascal doesn't
support 32 bits numbers ?

Comments

  • :I'd like to know if you use tp7 because i program for DOS.

    if you are a tp7 programmer i have a solution for you with basm
    first you have know how can you change graphic mode.

    there are 2 units and a star field example.at 256 colors;
    it can be changed to 15 ,16, and 32 bit deep.
    my video card doesn't support 24 bits deep;

    At home i have better than this working and supports
    * types of targas (image file type)
    * some bmp types;
    * mouse
    * and color convertions for 8,15,16,32 bits deep

    ******************************************************************
    send me an email " NCS_One@XekMail.AEIOU.PT "
    and i will send you back the units and progs i have.

    " sorry i cant help by now
    an error "message to long"
    i send it by email.
    "




  • : Hi,
    : I'd like to know how colors are coded in different graphic modes
    : (8,16,24,32).
    : In 32 bits, how can i transmit values to variables, knowing thet Pascal doesn't
    : support 32 bits numbers ?
    :



    Who told you that Pascal doesn't support 32-bit numbers?

    Iby

  • : : Hi,
    : : I'd like to know how colors are coded in different graphic modes
    : : (8,16,24,32).
    : : In 32 bits, how can i transmit values to variables, knowing thet Pascal doesn't
    : : support 32 bits numbers ?
    : :
    :
    :
    :
    : Who told you that Pascal doesn't support 32-bit numbers?
    :
    : Iby
    :
    : I mean 32 Bits signed values

  • : : : Hi,
    : : : I'd like to know how colors are coded in different graphic modes
    : : : (8,16,24,32).
    : : : In 32 bits, how can i transmit values to variables, knowing thet Pascal doesn't
    : : : support 32 bits numbers ?
    : : :
    : :
    : :
    : :
    : : Who told you that Pascal doesn't support 32-bit numbers?
    : :
    : : Iby
    : :
    : : I mean 32 Bits signed values

    In BP/TP LongInt is a 32bit signed value. There is no unsigned 32bit number. But newer compilers such as FPC and VP support them.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories