VHDL Bitmap editing

Guest #6738189
Rate this post
useful
not useful
Hello,
I want to write a VHDL program, which changes the color of specific 
forms for example a blue triangle to a green one. Now I dont know how to 
do it...

I have understood how to open a Bitmap, but the triangle and color 
recognition plus the replication of the edited Bitmap seem like an 
insoluble labyrinth for me.

Any ideas, tips or solutions for me?

Sorry for my bad english.

hardwarebär
Guest #6739446
Rate this post
useful
not useful
Lothar M. wrote:
> hardwarebär wrote:
>> Any ideas, tips or solutions for me?
> I don't think you have to recognize a triangle. You simply must find
> green pixels and change them to red.
>
> BTW: why do you not simply attach the picture and your part of the
> solution?
>
>> Sorry for my bad english.
> Write in the German uC.net forum.

Ich will ja nur die Farbe der (z.B.) Dreiecke ändern(was aber erstmal 
nebensächlich ist, weil mir ein simples Farben ändern schon reichen 
würde).

Bisher habe ich noch keine brauchbare Lösung, weswegen ich nach Tipps 
oder einer "Anleitung" frage.
Guest #6740541
Rate this post
useful
not useful
hardwarebär wrote:
> Bisher habe ich noch keine brauchbare Lösung, weswegen ich nach Tipps
> oder einer "Anleitung" frage.
1
  constant red   : std_logic_vector( 23 downto 0) := x"ff0000";
2
  constant green : std_logic_vector( 23 downto 0) := x"00ff00";
3
  constant blue  : std_logic_vector( 23 downto 0) := x"0000ff";
4
..
5
..
6
  if pixel = blue and triangle = true then
7
    pixel <= green;
8
  end if;
9
..

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now