Re: Graphics Doubts
- Posted by Ralf Nieuwenhuijsen <nieuwen at POP.XS4ALL.NL> Jul 11, 1997
- 886 views
> Hi to all. > I agree with Eric Dobbertin, when we read and display a BMP file in the > screen, a rectangle wich color variate with the palette used appear around > the corners of screen. I'd like to know if anyone have a solution to > this... Well, some color value of the palette is used, i think it is either 0 or 255, try and find out... > Another thing is: why I can't turn the background color when a bitmap is > being displayed in screen? There is NO such thing as background color in Graphics mode, everything is foreground color. If you set the background color it only changes the palette (the visible color) of each pixel drawn with color 0. BitMaps dont' have background colors too. You are asking the wrong question... Why did you assume there is a background color in Graphics Mode, Euphoria isn't a human robot that can deside what is background and what not when you're plotting pixels.. with text it can.. the character itself is foreground and everything else is background..but NOT with background, no matter what some1 tells you, there is no such thing as a REAL background color in graphics mode, there are only some routines that assume that color 0 is the background color. But you can check what the palette value is of your image background (a value between 0 and 255) and then set the color it shoudl be ( color is a combination of RED BLUE and Yellow) > And finally, how much colors Euphoria can suport? (please, don't send me > projections and proportions, I really want to know in numbers, like 16 > colors, 256 colors, 16800000 colors <-- WOW!). > Thanks to all.. Read Packard's tutorial, but the maximum colors support in Euphoria is 256 colors, but you have to be in a videomode of that number of colors (like Mode 19) PS You should read some tutorials like Packards one if you don't know exactly how the basics, we can't answer your question cause you dont' know what to ask... (i mean, your questions are sometimes impossible and not logical) Sorry, i don't want to be insulting, i just don't think any answer is capable of helping you... ... so i suggest you read some tutorials on this stuff you can find zillions on the next, just search for them... (search for X2FTP for example!!) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ~~~~>> Ralf Nieuwenhuijsen <<~~~~ ~~~>> nieuwen at xs4all.nl <<~~~~