This might be a bug in the version I’m using (2011 R1).
When drawing a 16x16 image, the image is distorted. Drawing a 256x256 copy of the image displays no apparent distortion.
No unusual coding: g.DrawPicture Enabled16, 0,0
Enabled16 is a PNG file. I also tried a BMP copy with the same results.
The image consists mainly of a circle. The circle draws as a rotated, rounded square.
This distortion is apparent in the Project list, when applied to bevel buttons, added as a rowpicture in a listbox, etc.
I scaled the 256x256 version and it is no longer a rounded square, but the edges of the circle are now jagged.
Besides upgrading, any ideas as to how to workaround this?
Thanks.
[quote=118864:@Michael Brogdon]This might be a bug in the version I’m using (2011 R1).
When drawing a 16x16 image, the image is distorted. Drawing a 256x256 copy of the image displays no apparent distortion.
No unusual coding: g.DrawPicture Enabled16, 0,0
Enabled16 is a PNG file. I also tried a BMP copy with the same results.
The image consists mainly of a circle. The circle draws as a rotated, rounded square.
This distortion is apparent in the Project list, when applied to bevel buttons, added as a rowpicture in a listbox, etc.
I scaled the 256x256 version and it is no longer a rounded square, but the edges of the circle are now jagged.
Besides upgrading, any ideas as to how to workaround this?.[/quote]
You may want to try with Xojo which does not need a license to simply run.
But I suspect what you experience maybe dues to the design of your image, and the limits of a 16x16 matrix of pixels. Representing circles with pixels is always tricky. Even more so when there are not many to choose from. And as you noticed the problem does not exist with 256x256 images, it is the only difference.
If you had posted the pictures it would be possible to see more, but chances are instead of a mechanical scaling you want to create a specific 16x16 version of your picture that renders better.
I created the image at 256x256 in an icon creation program.
I then exported the image as a PNG file at 256x256.
I then scaled the image in Photoshop to 16x16 and it looks perfectly fine everywhere except RB.
However, your post made me consider that Photoshop is doing something odd with the image and RB doesn’t like it.
I went back to the icon creation program and started a new icon at 16x16 and re-exported as PNG.
RB seemed happy with this new 16x16 image with no Photoshop scaling.
Looks great now. Thanks!
[quote=118869:@Michael Brogdon]I went back to the icon creation program and started a new icon at 16x16 and re-exported as PNG.
RB seemed happy with this new 16x16 image with no Photoshop scaling.[/quote]
Could be possible that Photoshop saved the picture in 256 colors, and then when RB displays it in 32, it lost the anti aliasing information Photoshop had created. The important thing is that you got a good result in the end.
I often create individual small versions of my apps icons instead of letting the program scale them down. Especially at 16x16, going from 1024 x 1024 down can produce rather strange results.