Message 1 of 3
Using Utils.GetBlockImage() for RibbonButton image

Not applicable
08-28-2021
07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to use the Autodesk.AutoCAD.Internal.Utils.GetBlockImage() method to get a preview of the blocks of a closed document. However, when using System.Windows.Interop.Imaging.CreateBitmapSourceFromHitmap(), the image in the RibbonSplitButton does not display correctly. How can I convert and resize it to display it correctly in the RibbonSplitButton?