How to convert a color image that is in a TdxSmartGlyph to grayscale?
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Sergio,
Our library does not include public methods that can transform images in this way. However, our drawing routines can make icons gray. If an icon is SVG, our routines change colors of specific elements according to the current skin (see UseEnabledSkinPaletteForSVG).
Could you please elaborate on the task you want to accomplish by transforming images?
Thanks for the answer, but I managed to get around the problem and get the result I expected using the class method in the cxGraphics unit.
TdxImageDrawer.DrawImage //or TdxImageDrawer.DrawUncachedImage
Thank you for the update.
Note that these methods are part of our internal undocumented API, which we may change in the future without notice. Please test them thoroughly.