ThinkGeo.com    |     Documentation    |     Premium Support

Scaling bitmap icons

I use bitmaps to represent pointshapes as vehicles.

The user inputs a number which determines what 1 pixel should equal. For example, they can say 1 pixel of the bitmap equals 1 foot, 1 meter, 1 inch, etc.

Is there some kind of built in scaling in ThinkGeo that autoscales the bitmaps based on pixels?

Hi Dan,

Our map don’t have API for that.

If you want to dynamic modify the size of image, I think you can handle it in memory by custom code, for example you can try to draw it in canvas, then resize it and save the canvas to memory as a new image.

Regards,

Ethan

No problem, I think I can get it pretty close by using code similar to this: http://wiki.thinkgeo.com/wiki/source_code_serviceseditionsample_scalingimagestyle_cs_090728.zip

Hi Dan,

Yes this sample should works for your scenario, that’s better than my thinking.

Thanks for your share.

Regards,

Ethan