Hi Adrian,
There are couple of things you can do. The "Shape" of an OMRasterObject
is a rectangle around the image. You could modify the render method of
OMRasterObject to draw this rectangle around the selected image (which
might be a good thing for us to add as the default action, actually).
If you want to go the XOR paint route, I think you can also modify the
render method to set the XOR mode of the graphics if the OMRasterObject
is selected. The XOR mode takes a single Color, though, so it might not
give you the results you think it will ( I really don't know either
way). The EditableOMGraphic uses the XOR mode for drawing changing
OMGraphics, so you can check that class out for an example of using that
mode.
Hope this helps,
Don
On Wednesday, July 3, 2002, at 07:56 PM, Adrian Lumsden wrote:
>
> I have developed a layer which displays text and an icon for points
> which have been selected by the user from a database. Either or
> both the text and icon are displayed.
>
> I want to allow them to pick items from the map using the mouse and I
> want to be able to show them which items have been selected.
>
> I can alter the text display of selected items by using
> setBoundsLineCOlor.
>
> I'd like to change the icon presentation and have been trying to do
> this with setImagFilter() to XOR the colours with a mask colour
> (so that I can XOR them back again).
>
> Does anyone have any hints or examples of doing this please?
>
>
> regards,
>
> Adrian
>
> - -------------------------------------------
> Adrian Lumsden Product Specialist
> Scientific Software and Systems Limited
>
> DDI: +64 4 917-6680
> Tel: +64 4 917-6670
> Fax: +64 4 917-6671
> E-mail: Adrian.Lumsden@sss.co.nz
>
> Visit us on the Web at: http://www.sss.co.nz
> _____________________________________________
>
> This e-mail passed SSS's content security scan.
> It is covered by the confidentiality clauses at
> http://www.sss.co.nz/content_and_confidentiality
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri Jul 5 12:32:56 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT