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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.