I'd do something like (in pseudocode)
for x = initial position to x + width of icon
for y = initial position to y + height of icon
main image = main image + icon image
end for
end for
If the icon is monochromatic, then just use an if statement to only
plot to the main image if the icon's pixel colour is the foreground
colour.
If the icon is not monochromatic, but has an odd outline, do the same
thing but for the background colour.
You could also use plotblend to blend the icon and the main image.
Hope that helps.
Paul
On 10 Oct 2005, at 11:52, Jose wrote:
Sometimes you want to highlight "resaltar" certain points by adding
an icon rather than a basic sign like +
So in practice, e.g. I have a PNG icon that is 10x10 pixels and I
want to display it centered in point 50,60 of a 200x200 image
On 10/10/05, Paul <[EMAIL PROTECTED]> wrote: Jose,
I'm not sure I understand you.
What exactly do you mean by hilight? Place an external PNG image at
an x,y position that satisfies certain conditions?
Paul
On 10 Oct 2005, at 05:08, Jose wrote:
> Hi,
>
> I want to highlight certain points in the PNG with an external PNG
> icon. How can I do that ?
>
> Saludos
> Jose
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users