SVG.DrawPicture (canvas As CanvasWrapper, destrect As android.graphics.Rect)
"Draw this picture on the specified canvas to fit into the dest rectangle."
The picture is drawn at the destination rectangle origin but not clipped or scaled to the rectangle edges (contrast with DrawBitmap which does)
Dim rect1 As Rect
rect1.Initialize(200dip, 200dip,100dip,100dip)
Dim s As SVG
s.Initialize(File.DirAssets,"mypicture.svg")
s.DrawPicture(cvs,rect1)
Dim bdw As Bitmap
bdw.Initialize(File.DirAssets,"Rose2.jpg")
cvs.DrawBitmap(bdw,Null,rect1)
"Draw this picture on the specified canvas to fit into the dest rectangle."
The picture is drawn at the destination rectangle origin but not clipped or scaled to the rectangle edges (contrast with DrawBitmap which does)
Dim rect1 As Rect
rect1.Initialize(200dip, 200dip,100dip,100dip)
Dim s As SVG
s.Initialize(File.DirAssets,"mypicture.svg")
s.DrawPicture(cvs,rect1)
Dim bdw As Bitmap
bdw.Initialize(File.DirAssets,"Rose2.jpg")
cvs.DrawBitmap(bdw,Null,rect1)
Last edited: