Profile Picture

Resize shape and background Bitmap

Posted By Tezcan Cirakoglu 12 Years Ago
Author
Message
Tezcan Cirakoglu
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 5, Visits: 1
I have an issue like this.

I inserted a rectangle to the document, and create a bitmap in memory with exact width and height of the shapes bounds. (It is as same as if i ad a polygon)

Set fill style to imagefillstyle and set the newly created bitmap as fill image. When the shapes bounds changes, i catch it from event sink service and works greate. On every bound change event, i create e new bitmap with the size of shapes bounds. The MapLayout = MapLayout.Centered. When i resize the shape from GeometryPoints, everything is ok, but when i resize the shape from Bounds Control Points, the image scales and gets bigger (Although a new image with the new size is created) (likely shape zooms to the image)

Why may this happen. Wneh i debug i saw that on every size change correct size of image is created in memory and that image is set as background image of shape. How can i prevent shape scales the image?

Thanks for further help






Similar Topics


Reading This Topic