Jump to content

Recommended Posts

Posted

In a script I'm using the GuiCtrlSetImage command to display a bmp image created in Illustrator. When exporting to bmp from Illustrator the Basic options include 16 bit, 24 bit, and 32 bit.  (all are RGB, 72ppi, with anti-aliasing = "art optimized" (though I tried "none" and it made no difference to the outcomes shown))

Following are screen captures of how AutoIt's GuiCtrlSetImage command renders the bmp image.

32 bit original (note ragged edges)

32bitexample.png

 

24 bit original (looks closest to original, but there are some black pixel artifacts in the top left chrome border, so it ain't perfect)

24bitexamplelargertosho.png

 

16 bit original (note lots of breakup in chrome border and black pixels around border of white silhouette)

16bitexample.png

 

As you see, the 24 bit capture is the only acceptable one. However, I had to compromise on the graphic because originally it had "inner glow" effects in the white areas. Below is a screen capture of what AutoIt did to this 24 bit image.  The only difference between this and the previous 24 bit image is that this one has an inner glow (gray to white gradient along edges of white silhoutte) effect.

24bitexamplewithinnergl.png

 

Either there's a bug in AutoIt or my bmp files are incompatible in some way.  Can anyone tell me the ideal specs for a bmp image for use with GuiCtrlSetImage?  In case it helps, below are some of Illustrator's Advanced Export-to-bmp options (I used the Basic Modes described at the top). Note also that I brought the image into Photoshop and saved it as a bump there, and I got the same artifacts.

 

illustratoradvancedbmpo.png

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...