Как сохранить значок ImageMSO от Microsoft Office 2007?

Стандартный дизайн обычно следует за тем, что делает getopt, существуют getopt библиотеки для многих языков.NET, Python, C, Perl, PHP, и т.д.

, базовая конструкция должна иметь синтаксический анализатор командной строки, который возвращает часть частью, которую аргументы передали, чтобы быть проверенными в цикле.

Этот статья обсуждает его еще в некоторых деталях.

8
задан hannson 19 August 2009 в 03:36
поделиться

1 ответ

All of the PNG files can be found here These are all in PNG format already. Good programming! (a nice ZIP archive is also available Here) The ZIP archive contains all 17 of the Excel icons.

When you use the GetImageMso method, you end up with an IPicture interface to the object. The IPicture interface accesses the icon suitable for saving to a file in the original format - an .ICO, .WMF or a .BMP The PNG format is not supported. The following links explain why this is not directly possible:

http://msdn.microsoft.com/en-us/library/aa434604.aspx (msoGetImageMso method) http://msdn.microsoft.com/en-us/library/ms680761%28VS.85%29.aspx (IPicture Interface) http://msdn.microsoft.com/en-us/library/ms694504%28VS.85%29.aspx (Save As File method)

However, using a more complex approach will yield what you want:

http://blogs.msdn.com/mshneer/archive/2007/10/10/preserving-transparency-when-rendering-office-icons.aspx

1
ответ дан 5 December 2019 в 13:01
поделиться
Другие вопросы по тегам:

Похожие вопросы: