CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 8180

CAD tip CAD tip # 6546:

   
Question CAD 
 %  platform  category 
Q - question

How to set transparent color for my own AutoCAD icons?

A - answer If you need to create a partially "transparent" toolbar icons, you cannot use standard ways of PNG format with alpha-channel or transparent GIF files - AutoCAD (up to 2014) supports only icons in the BMP format which doesn't work with transparency.

But you can use a trick - the color with the hue of 192-192-192 (RGB) used in BMP icons is interpreted by AutoCAD as "transparent". Since 2015 you can use PNG icons with transparency. Since 2017 the 192,192,192-trick doesn't work anymore and PNG is the only option for transparent icons.

ACAD2009ACAD2008LTADT
100% *  CAD 
24.2.2009    13653×  
Prices - CAD eShop:

See also:
Tip 14006:Universal MsgBox in AutoLISP.
Tip 13822:Fast layer visibility toggle ON/OFF.
Tip 13504:How to add own commands to AutoCAD custom palette?
Tip 13459:DWG drawing version history directly in AutoCAD.
Tip 10808:How to make transparent icons for my CUI ribbon in AutoCAD 2017.


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist