Программно добавляющие Изображения к Документу RTF

Изменения в нефайлах исходного кода не заставляют восстанавливание происходить - их не рассматривают, когда компилятор делает это устаревшее проверка.

Попытка, вызывающая полное, восстанавливает путем удаления выходного каталога полностью (иногда выполнение, это из Visual Studio не завершено).

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

22
задан Cœur 15 April 2017 в 18:55
поделиться

1 ответ

попробуйте эти ссылки

вы должны изменить «picwgoa» на «picwgoal» и «pichgoa» на «pichgoal»

string mpic = @"{\pict\pngblip\picw" + 
    img.Width.ToString() + @"\pich" + img.Height.ToString() +
    @"\picwgoal" + width.ToString() + @"\pichgoal" + height.ToString() + 
    @"\bin " + str + "}";

Здесь у вас есть список поддерживаемых форматов изображений

\emfblip      Source of the picture is an EMF (enhanced metafile).
\pngblip      Source of the picture is a PNG.
\jpegblip     Source of the picture is a JPEG.
\shppict      Specifies a Word 97-2000 picture. This is a destination control word.
\nonshppict   Specifies that Word 97-2000 has written a {\pict destination that it will not read on input. This keyword is for compatibility with other readers.
\macpict      Source of the picture is QuickDraw.
\pmmetafileN  Source of the picture is an OS/2 metafile. The N argument identifies the metafile type. The N values are described in the \pmmetafile table below.
\wmetafileN   Source of the picture is a Windows metafile. The N argument identifies the metafile type (the default is 1).
\dibitmapN    Source of the picture is a Windows device-independent bitmap. The N argument identifies the bitmap type (must equal 0).The information to be included in RTF from a Windows device-independent bitmap is the concatenation of the BITMAPINFO structure followed by the actual pixel data.    
\wbitmapN     Source of the picture is a Windows device-dependent bitmap. The N argument identifies the bitmap type (must equal 0).The information to be included in RTF from a Windows device-dependent bitmap is the result of the GetBitmapBits function.
28
ответ дан 29 November 2019 в 04:40
поделиться
Другие вопросы по тегам:

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