[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-16 Thread stephen
OK - so the answer isn't canvas.scale (that scales up the bitmaps).
How can the canvas be manipulated to increase its size (i.e. provide
more room to draw my images)?

Thanks,

Stephen

On Oct 11, 9:23 am, stephen  wrote:
> Makes sense. So something like:
>
> canvas.save
> canvas.scale
> // do drawing...
> canvas.restore
>
> ?
>
> Or is there some other way to increase the canvas bounds that I should
> be using?
>
> Thanks,
>
> Stephen
>
> On Oct 11, 6:15 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Mon, Oct 10, 2011 at 11:13 PM, stephen  wrote:
> > > How do you set the bounds of the custom imagery so that calls
> > > to drawCompass set the required bounds on the canvas object?
>
> > You could try saving the current state of the Canvas, doing your drawing,
> > then restoring it.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-11 Thread stephen
Makes sense. So something like:

canvas.save
canvas.scale
// do drawing...
canvas.restore

?

Or is there some other way to increase the canvas bounds that I should
be using?

Thanks,

Stephen

On Oct 11, 6:15 am, TreKing  wrote:
> On Mon, Oct 10, 2011 at 11:13 PM, stephen  wrote:
> > How do you set the bounds of the custom imagery so that calls
> > to drawCompass set the required bounds on the canvas object?
>
> You could try saving the current state of the Canvas, doing your drawing,
> then restoring it.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en