Shouldn’t an image assigned to a PixMapShape be drawn larger or smaller when the Scale property is set to anything other than 1.0? It is always drawn the same size.
Hm, so I’ve found that it works correctly when this constructor is used:
dim p as new PixMapShape( imageName )
But it doesn’t work if the image is assigned like this:
dim p as new PixMapShape
p.image = imageName
[quote=365170:@Aaron Hunt]Hm, so I’ve found that it works correctly when this constructor is used:
dim p as new PixMapShape( imageName )
But it doesn’t work if the image is assigned like this:
dim p as new PixMapShape
p.image = imageName
[/quote]
Sounds like a good bug report.
Everything I read about PixmapShape show examples like this:
[code]Dim p As Picture
Dim px As PixmapShape
p = New Picture(640, 480)
px = New PixmapShape§
px.Image = CarImage
g.DrawObject(px, 10, 250)[/code]
With my limited Xojo knowledge, this code works:
[code]Dim p As Picture
Dim px As New PixmapShape
p = New Picture(493, 212)
px = New PixmapShape§
px.Image = Untitled
px.Scale = 0.5
g.DrawObject(px, 246, 106)[/code]
Untitled is a jpg image that is 493 by 212. I can change the px.Scale and it works. There is not much information about PixmapShape on the docs, so I don’t know if the problem is the missing (…) after PixmapShape or other issue.
Norman reported it, <https://xojo.com/issue/50887>. Thanks.