I am working on a drawing program that draws to a bitmap in memory
then i draw the relevant portion to the view canvas depending on pan
and zoom settings

So i have run into a snag where if the src rect is outside to bounds
of the canvas in 2.2 the area outside the bounds is not drawn but in
2.1 it stretched the available area of the bitmap to fit the target.

e.g. for src (-40,-40,10,10) -> tgt (0,0,50,50)
in 2.2 there is just the area (0,0,10,10) drawn in the bottom right
corner(40,40,50,50)
but int 2.1 the area is stretched so the area (0,0,10,10) is stretched
to (0,0,50,50)

is there a flag or something to turn off the stretching behaviour and
make it behave like the 2.2 version? or do i just have to do the
checks manually and modify the target are to fit what available in the
src?

im hoping that makes sense to someone ...

rob m

-- 
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

Reply via email to