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




Posts: 20
Joined: 2014-03-03
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: 14106
Joined: 2006-05-11
Hello Vladimír,

I believe I have answered this question in your other topic, see How to add two ImageLists for Ribbon icons in16x16 and 32x32. If you don't think so, please let me know.

Regards from Belarus (GMT+3),

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




Posts: 20
Joined: 2014-03-03
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: 14106
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.

Regards from Belarus (GMT+3),

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




Posts: 20
Joined: 2014-03-03
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: 14106
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.

Regards from Belarus (GMT+3),

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




Posts: 20
Joined: 2014-03-03
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: 14106
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?

Regards from Belarus (GMT+3),

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




Posts: 20
Joined: 2014-03-03
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: 14106
Joined: 2006-05-11
Thank you. We are looking into this.

Regards from Belarus (GMT+3),

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