Re: Beginner needing some help... HELP ME!

new topic     » goto parent     » topic index » view thread      » older message » newer message

>  Hi to all, I have a doubt (Who don't have?) that could be nothing to you,
> but to me is a lot of trouble...
>  I need to do appear in a background, a little drawing. The drawing I did
> (using MSPaint of windows 95), and with help of some of you I could put it
> in a black background. But here is the question... if my image has a
> palette, how to put the background, without turn the colors of each
> individual palette?
        I don't exactly understand what you mean.. but i guess the only
wanted effect i can come up with is that the colors should look the
same in your program as in MSPaint (PS There are a lot better (but
shareware) drawing tools, like Paint Shop Pro, just search with
Excite (the best & smartest, it can *learn*, it is almost AI))

        Here some example code:
--------------------- ThE CoDe ------------- ~<~<~<~<~<~@ (cool rose)

        include graphics.e              -- Graphics mode support
        include image.e                 -- Image sequence manipulation

        if graphics_mode (19) then
                puts(1,"GET A DESCENT VIDEO CARD, Fred...\n")
                abort(1)
        end if

        object my_image

        my_image = read_bmp ("my_image.bmp")
        if atom(my_image) then
                puts(1,"Error loading image!!!\n")
                abort (1)
        end if
        all_palette (my_image[1]/4)             -- 256 to 64 color levels
        display_image ({0,0},my_image[2])
------------------------------------------------ <o^o> (auto)

        This will display "my_image.bmp" with the right colors!!
        But you MUST save your pictures with 256 colors or less, so not a
windows zillion colors way incompatible bitmap !!!

>  Please,
don't be angry with me, I am just a beginner, trying to understand
> better the things...

        Its about someone's intentions and thinking that makes a person BAD,
not his intelligence nor his knowledge... any1 disagreeing will
someday meet some1 smarter then him and it will make him feel LOW....

        So you shouldn't worry... asking for help is a sign of respect...

        Glad to help you..

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu