Share via


Small Basic Known Issue: 25568 - Shapes.Zoom() Stops Program with 0.7 or Smaller Scale of Transparent Image in Local

Introduction

Series of know issues articles are showing known issue itself about Small Basic and it's workaround. In this article, **local **means Small Basic IDE environment and remote means internet browser environment with Silverlight add-in.

Phenomenon

If Shapes.Zoom zooms with 0.7 or smaller scale and an image that has transparent pixels in local, that program stops with such as following run time error message.

Workaround

To avoid this issue, use opaque images.

Sample Programs

To Reproduce This Issue

scale = 0.7
url = "http://gallery.technet.microsoft.com/site/view/file/119953/1/Duck.png"
duck = Shapes.AddImage(url)
Shapes.Move(duck, 200,  140)
Program.Delay(1000)
Shapes.Zoom(duck, scale,  scale)

Zoom Sample

QTC048-0 - This program works in remote.  And this program also shows zooming scale from 2.0 to 1.8 work well.

See Also