I am not entirely sure if this is what you are looking for, but the Canvas
has a method where you can specify the a source and destination rectangle to
draw from and to:
public void 
drawBitmap(Bitmap<file:///C:/Software/android/docs/reference/android/graphics/Bitmap.html>
 bitmap, 
Rect<file:///C:/Software/android/docs/reference/android/graphics/Rect.html>
 src, 
Rect<file:///C:/Software/android/docs/reference/android/graphics/Rect.html>
 dst, 
Paint<file:///C:/Software/android/docs/reference/android/graphics/Paint.html>
 paint)

HTH

Ludwig

2008/10/26 PorkChop <[EMAIL PROTECTED]>

>
> What I am trying to achieve is breaking a drawable down into an array
> of separate bitmaps. E.g. I am passing a grid of 32x32 images (lets
> say the image is 320x320 pixels and contains a grid of 10x10 smaller
> bimap images) and i want to create an array of 100 bitmaps.
>
> So I need to copy from (eg) x=32, y=32, w=32,h=32 into another bitmap
> which is 32x32 pixels. Anyone got any idea how to do this? Hope I have
> explained this well enough.
>
>
>
>
> >
>

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

Reply via email to