• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

Custom glyph rendering in Adobe InDesign on Palettes

Participant ,
Sep 04, 2023 Sep 04, 2023

Copy link to clipboard

Copied

Hi,

 

We are currently using the following Icon on our custom Palette that is being rendered using IControlView native rendering (IconSuiteWidge)

asaxena_0-1693813369364.png

However, when I custom render by deriving my own class from IconSuiteWidget and overriding it's 'Draw' method (based on Create24bitRGBPreview used in the SDK samples), the same glyph is being rendered like so. 

asaxena_1-1693813414351.png

I am not sure what I am missing or how I can achieve the same result as InDesign native rendering. It feels this may have something to do with transparency and opacity, but I am not sure. Any help here is really appreciated.

 

Secondly, I see an approach using overriding DV_Draw in the sample CusDtLnkUICustomView::DV_Draw which seems like an alternate to overriding Draw. What are the pros and cons of this approach and is this likely to yield any better results as far as my use case is concerned?

 

Thanks,

TOPICS
How to , SDK

Views

75

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 07, 2023 Sep 07, 2023

Copy link to clipboard

Copied

LATEST

Hi, checking if there is any suggestions for my queries.

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines