Icon quality in Ribbon

Add-in Express™ Support Service
That's what is more important than anything else

Icon quality in Ribbon
 
Vladim?r Klaus


Guest


Hello

please take a look at example. I'd like to have DevEx quality rendering in your components... Of course especially in runtime!

http://temp.audrey.cz/addinexpress/IconQuality.png

Vladim?r
Posted 27 Mar, 2014 05:00:04 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Vladim?r,

I believe I have answered this question in your other topic, see http://www.add-in-express.com/forum/read.php?FID=1&TID=12264. If you don't think so, please let me know.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Mar, 2014 04:50:20 Top
Vladim?r Klaus


Guest


Hello Andrei,

unfortunatelly there is still problem somewhere on your side. Or - are the ribbons in Outlook and Word different???

Please take a look at new attachment:

http://temp.audrey.cz/addinexpress/IconQuality2.png

1) icon in Outlook via your component - semitrasparent pixels are too dark
2) icon in Word via "Custom UI Editor For Microsoft Office" - pixels are OK
3) original icon on white background in Photoshop - pixels are OK

No DevEx components at all!

Vladim?r
Posted 28 Mar, 2014 06:24:56 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Vladim?r,

Your deal with this scenario. A Ribbon group containing your controls has the AutoScale property set to true. This causes Office to redraw the image using algorithms of its own when you resize the host application window. Since Office doesn't provide a way to supply 2 images for a single ribbon control, the only way out of this is to set AutoScale=false.

I've just tested using a .ICO containing 16x16 and 32x32 images. This doesn't help.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Mar, 2014 07:58:21 Top
Vladim?r Klaus


Guest


Hello Andrei,

I'm sorry but your answer is not for this issue/topic!!!

Please take a look again - I say "you" have problem with semitransparent pixels. It is not about stretching images.

Vladim?r
Posted 28 Mar, 2014 08:14:38 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Oh, sorry.

Is the question about showing these images in Office or in Add-in Express designers? In fact, at the run rime, the icons are rendered by Office, not by Add-in Express.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Mar, 2014 10:50:56 Top
Vladim?r Klaus


Guest


I know there is bad quality in Express designer. But it's not important. :)

I talk about quality directly in Office. I understand it is rendered by Office but I'd like to know what to change to get better quality.

Did you see this?
http://temp.audrey.cz/addinexpress/IconQuality2.png

1st image is "your" bad rendering in Outlook via add-in components
2nd is "perfect" rendering in Word via icons in *.dotm template
3rd is icon in Photoshop

So as you see Office (Word) is able to render icons perfectly. But probably not via your way. There must be a reason that semitransparent pixels are rendered bad (darker).

Vladim?r
Posted 02 Apr, 2014 00:04:18 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Vladim?r,

Vladim?r Klaus writes:
1st image is "your" bad rendering in Outlook via add-in components


Did you use an ImageList or the Glyph property?

Vladim?r Klaus writes:
2nd is "perfect" rendering in Word via icons in *.dotm template


How did you do this?

Can you send me the original icon for testing? What Delphi version are you using?


Andrei Smolin
Add-in Express Team Leader
Posted 02 Apr, 2014 07:10:29 Top
Vladim?r Klaus


Guest


Hello Andrei,

I tried ImageList, Glyph and as well as cxImageList with *.png.

I use Office Custom UI Editor:
http://msdn.microsoft.com/en-us/library/ee691832(v=office.14).aspx

Download here:
http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/08/06/7293.aspx

I use Delphi XE 2.

Additional files:
http://temp.audrey.cz/addinexpress/document_text-item_show.png
http://temp.audrey.cz/addinexpress/VKNedelitelneMezery-test.dotm

When you open *.dotm (it's a zip file), there is subfolder "customUI/images". There is exactly the same png file as my original png.

Vladim?r
Posted 03 Apr, 2014 00:44:15 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Thank you. We are looking into this.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2014 08:23:14 Top