{"id":316417,"date":"2021-01-15T15:00:33","date_gmt":"2021-01-15T15:00:33","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=316417"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=316417","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Dockers \u0432 Corel Draw"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 Corel Draw \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 17 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 VBA, \u043d\u043e \u0438 \u043d\u0430 C# VSTA. \u0422\u0430\u043a \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u044d\u0442\u0438\u043c \u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043c \u043c\u0435\u0447\u0442\u0443 \u043e \u043a\u043d\u043e\u043f\u043a\u0435 &#171;<strong>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/strong>&#171;.<\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u2013&nbsp; \u0441 2002 \u0433\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u043f\u0440\u0435\u043f\u0440\u0435\u0441\u0441 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c \u0432 \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e \u0445\u043e\u0431\u0431\u0438: \u0438 \u043a\u043e\u0434, \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043a\u0440\u0438\u0442\u0438\u043a\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u0444\u0438\u0441\u0442\u043e\u0432 \u2013 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0441\u043f\u0443\u0441\u043a\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445, \u043d\u043e \u0432 \u0440\u0435\u0430\u043b\u0438\u044f\u0445 \u043c\u043e\u0435\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430 \u044d\u0442\u043e \u043d\u0435 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0422\u0438\u0440\u0430\u0436\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0432\u0435\u043b\u0438\u043a\u043e \u0438 95% \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 CorelDraw.<\/p>\n<\/div>\n<\/details>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u0433\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430:<\/h4>\n<p><a href=\"https:\/\/www.coreldraw.com\/\" rel=\"noopener noreferrer nofollow\"><u>Corel Draw<\/u><\/a><\/p>\n<p><a href=\"https:\/\/visualstudio.microsoft.com\/ru\/vs\/community\/\" rel=\"noopener noreferrer nofollow\"><u>Visual Studio<\/u><\/a><\/p>\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=58317&amp;WT.mc_id=DX_MVP4025064\" rel=\"noopener noreferrer nofollow\"><u>Visual Studio Tools for Applications (\u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)<\/u><\/a><\/p>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f C#<\/p>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f WPF<\/p>\n<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f Visual Studio \u043e\u0442 \u201c<a href=\"https:\/\/github.com\/bonus630\" rel=\"noopener noreferrer nofollow\"><u>bonus360<\/u><\/a>\u201d:<\/p>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=bonus630.CorelDrawDockerTemplate\" rel=\"noopener noreferrer nofollow\"><u>CorelDraw Addons Templates<\/u><\/a><\/p>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=bonus630.CorelDrawAddonsPackerFree\" rel=\"noopener noreferrer nofollow\"><u>CorelDraw Addons Packer<\/u><\/a><\/p>\n<hr>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0442\u0443\u0434\u0438\u044e \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043f\u0430\u043f\u043a\u0438. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0432\u044b\u0431\u0440\u0430\u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u2013 \u201cCorelDRAW Docker Addon\u201d. \u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043c\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u201cMagicUtilites\u201d. <\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8ce\/f29\/4ad\/8cef294ad93ee6717e7a396a10d53ab6.png\" width=\"551\" height=\"250\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043e\u0448\u043a\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0434\u043e\u043a\u0435\u0440\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp; \u0442\u0430\u043a\u0436\u0435 \u201cMagicUtilites\u201d, \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 CorelDraw, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c. \u0416\u043c\u0435\u043c \u201cDone\u201d \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043a\u0430\u043a \u0440\u0443\u0442\u0438\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0a6\/94e\/344\/0a694e3444a462d7f7e494deaea1253c.png\" width=\"434\" height=\"415\"><figcaption><\/figcaption><\/figure>\n<p><em>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d \u0432 \u0444\u0430\u0439\u043b\u0435 Extensions.cs, \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/em><\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c F5 \u0438 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043c\u0435\u043d\u044e CorelDraw &#8212; Window &#8212; Dockers \u0432\u0430\u0448 \u0434\u043e\u043a\u0435\u0440. \u0421\u0435\u0439\u0447\u0430\u0441 \u043e\u043d \u043f\u0443\u0441\u0442\u043e\u0439 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442, \u043d\u043e \u043c\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c. <\/p>\n<hr>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>DockerUI.xaml<\/code> \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 XAML \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u0434\u043e\u043a\u0435\u0440.<\/p>\n<pre><code class=\"xml\">&lt;Grid Margin=\"0,0,0,0\"&gt; \t&lt;StackPanel&gt; \t\t&lt;Button Content=\"Text Convert to Curves\" Height=\"25\" Margin=\"4\" Click=\"Button_Click\"\/&gt; \t&lt;\/StackPanel&gt; &lt;\/Grid&gt;<\/code><\/pre>\n<p><em>\u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 <\/em><a href=\"https:\/\/ru.wikipedia.org\/wiki\/Model-View-ViewModel\" rel=\"noopener noreferrer nofollow\"><em><u>MVVM<\/u><\/em><\/a><em> (\u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 WPF), \u0430 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u043a\u043e\u0434 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0441\u044f, \u043e\u0431\u0435\u0449\u0430\u044e.<\/em><\/p>\n<hr>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>DockerUI.xaml.cs<\/code><\/p>\n<pre><code class=\"cs\">private corel.Application corelApp;<\/code><\/pre>\n<p>\u041a\u043b\u0430\u0441\u0441 <code>corel.Application<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u0434\u043e\u043a\u0435\u0440\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044e \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435.<\/p>\n<p>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <code>Button_Click<\/code>.<\/p>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0447\u0442\u043e \u0432 CorelDraw \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0444\u0430\u0439\u043b. \u0418 \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442, \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   if (corelApp.ActiveDocument == null) \t\treturn; }<\/code><\/pre>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>ActiveDocument<\/code> \u0442\u0438\u043f\u0430 <code>corel.Application<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) { \tif (corelApp.ActiveDocument == null) \t\treturn;  \tcorelApp.BeginDraw();  \tcorelApp.EndDraw(); }<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <code>BeginDraw()<\/code> \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u0432\u044b\u0437\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <code>EndDraw()<\/code> \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.&nbsp;<\/p>\n<p>\u0412 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   if (corelApp.ActiveDocument == null)     return;    corelApp.BeginDraw();    foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     foreach (corel.Shape shape in page.Shapes.All())     {       if (shape.Type == corel.cdrShapeType.cdrTextShape)         shape.ConvertToCurves();     }   }    corelApp.EndDraw(); }<\/code><\/pre>\n<\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>ConvertToCurves()<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e\u0442 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u0440\u0438\u0432\u044b\u0435.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 <strong>\u201cText Convert to Curves\u201d<\/strong> \u043d\u0443\u0436\u0435\u043d \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043d\u0435\u043c. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438, \u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u043b\u0438 \u0432 PowerClip \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u0440\u0438\u0432\u044b\u0435 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442.&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a Corel Draw \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 <code>corel.Shape<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 <code>corel.Shape<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u0435\u0440\u043d\u0451\u0442 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 <code>cdrGroupShape<\/code>. \u0422\u043e\u0433\u0434\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0441\u044c \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <code>Shapes<\/code>, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>cdrBitmapShape<\/code>, \u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Bitmap<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u0415\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>cdrGuidelineShape<\/code>, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Guide<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e.&nbsp;<\/p>\n<p>\u0423\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e corel \u043e\u0431\u044a\u0435\u043a\u0442 \u2013 PowerClip \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 PowerClip-\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>PowerClip<\/code> \u043d\u0430 null.<\/p>\n<p><strong>\u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043a\u043e\u0434\u0443.<\/strong><\/p>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0434\u0432\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430.&nbsp;<\/p>\n<pre><code class=\"cs\">private void MakeToAllPages() {   if (corelApp.ActiveDocument == null)     return;   corelApp.BeginDraw();   foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     MakeToShapeRange(page.Shapes.All());   }   corelApp.EndDraw(); }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>MakeToAllPages<\/code> \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<pre><code class=\"cs\">private void MakeToShapeRange(corel.ShapeRange sr) {   foreach (corel.Shape shape in sr)   {     if (shape.Type == corel.cdrShapeType.cdrGroupShape)       MakeToShapeRange(shape.Shapes.All());      if (shape.PowerClip != null)       MakeToShapeRange(shape.PowerClip.Shapes.All());      if (shape.Type == corel.cdrShapeType.cdrTextShape)       shape.ConvertToCurves();   } }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>MakeToShapeRange<\/code> \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0440\u0443\u043f\u043f\u043e\u0439 \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 PowerClip-\u043e\u043c \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442. \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u0432 \u043a\u0440\u0438\u0432\u044b\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   MakeToAllPages(); }<\/code><\/pre>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 <code>Button_Click<\/code> \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages<\/code>.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0435\u043a\u0441\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0438 PowerClip.<\/p>\n<hr>\n<h4>\u041d\u043e \u0434\u043e\u043a\u0435\u0440 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u044d\u0442\u043e \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043d\u043e\u043f\u043e\u043a.<\/h4>\n<pre><code class=\"xml\">&lt;StackPanel&gt;   &lt;Button Content=\"Text convert to curves\" Height=\"25\" Margin=\"4\" Click=\"ConvertToCurves\"\/&gt;   &lt;Separator Margin=\"4\"\/&gt;   &lt;Button Content=\"Uniform fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"UniformFillToCMYK\"\/&gt;   &lt;Button Content=\"Outline fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"OutlineFillToCMYK\"\/&gt;   &lt;Button Content=\"Fountain fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"FountainFillToCMYK\"\/&gt;   &lt;Separator Margin=\"4\"\/&gt;   &lt;Button Content=\"Bitmap to CMYK\" Height=\"25\" Margin=\"4\" Click=\"BitmapToCMYK\"\/&gt;   &lt;Button Content=\"Resample Bitmap to 300 dpi\" Height=\"25\" Margin=\"4\" Click=\"ResampleBitmap\"\/&gt; &lt;\/StackPanel&gt;<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a.<\/p>\n<pre><code class=\"cs\">private void ConvertToCurves(object sender, RoutedEventArgs e){}  private void BitmapToCMYK(object sender, RoutedEventArgs e){}  private void UniformFillToCMYK(object sender, RoutedEventArgs e){}  private void OutlineFillToCMYK(object sender, RoutedEventArgs e){}  private void FountainFillToCMYK(object sender, RoutedEventArgs e){}  private void ResampleBitmap(object sender, RoutedEventArgs e){}<\/code><\/pre>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToShapeRange<\/code>. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0441\u0442, \u043d\u043e \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0435\u0441\u0442\u044c \u043b\u0438 \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0438\u043b\u0438 \u043e\u0431\u0432\u043e\u0434\u043a\u0430 \u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0427\u0442\u043e\u0431\u044b \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToShapeRange<\/code>, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages()<\/code> \u043d\u0430 <code>MakeToAllPages(Action&lt;corel.Shape&gt; action)<\/code>. \u0422\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToShapeRange<\/code> \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0438 \u0435\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443. \u0410 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToAllPages<\/code> \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u0432\u044b\u0437\u043e\u0432.<\/p>\n<pre><code class=\"cs\">private void MakeToAllPages(Action&lt;corel.Shape&gt; action) {   if (corelApp.ActiveDocument == null)     return;   corelApp.BeginDraw();   foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     MakeToShapeRange(page.Shapes.All(), action);   }   corelApp.EndDraw(); }  private void MakeToShapeRange(corel.ShapeRange sr, Action&lt;corel.Shape&gt; action) {   foreach (corel.Shape shape in sr)   {     if (shape.Type == corel.cdrShapeType.cdrGroupShape)       MakeToShapeRange(shape.Shapes.All(), action);      if (shape.PowerClip != null)       MakeToShapeRange(shape.PowerClip.Shapes.All(), action);      action(shape);   } }<\/code><\/pre>\n<p><em>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430.<\/em><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u0445 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages<\/code>&nbsp;\u0441 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p><strong>\u0414\u0430\u043b\u0435\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a\u043e\u0434\u0430.<\/strong><\/p>\n<pre><code class=\"cs\">private void ConvertToCurves(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.Type == corel.cdrShapeType.cdrTextShape) \/\/ \u0435\u0441\u043b\u0438 \u0442\u0435\u043a\u0441\u0442       s.ConvertToCurves(); \/\/ \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u043a\u0440\u0438\u0432\u044b\u0435   }); }  private void BitmapToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.Type == corel.cdrShapeType.cdrBitmapShape) \/\/ \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430       if (s.Bitmap.Mode != corel.cdrImageType.cdrCMYKColorImage) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK         s.Bitmap.ConvertTo(corel.cdrImageType.cdrCMYKColorImage); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK   }); }  private void UniformFillToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.CanHaveFill) \/\/ \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043b\u0438\u0432\u043a\u0430       if (s.Fill.Type == corel.cdrFillType.cdrUniformFill) \/\/ \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0441\u043f\u043b\u043e\u0448\u043d\u0430\u044f         if (s.Fill.UniformColor.Type != corel.cdrColorType.cdrColorCMYK) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK           s.Fill.UniformColor.ConvertToCMYK(); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK   }); }  private void OutlineFillToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.CanHaveOutline) \/\/ \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u0432\u043e\u0434\u043a\u0430       if (s.Outline.Type == corel.cdrOutlineType.cdrOutline) \/\/ \u043e\u0431\u0432\u043e\u0434\u043a\u0430 \u0435\u0441\u0442\u044c         if (s.Outline.Color.Type != corel.cdrColorType.cdrColorCMYK) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK           s.Outline.Color.ConvertToCMYK(); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK   }); }  private void FountainFillToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.CanHaveFill) \/\/ \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043b\u0438\u0432\u043a\u0430       if (s.Fill.Type == corel.cdrFillType.cdrFountainFill) \/\/ \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442       {         foreach (corel.FountainColor c in s.Fill.Fountain.Colors) \/\/ \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0435         {           if (c.Color.Type != corel.cdrColorType.cdrColorCMYK) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK             c.Color.ConvertToCMYK(); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK         }       }   }); }  private void ResampleBitmap(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     int resolution = 300;     if (s.Type == corel.cdrShapeType.cdrBitmapShape) \/\/ \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430       if (s.Bitmap.ResolutionX != resolution || s.Bitmap.ResolutionY != resolution) \/\/ \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c         s.Bitmap.Resample(0, 0, true, resolution, resolution); \/\/ \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435   }); }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<hr>\n<p><strong>\u041d\u0430 \u044d\u0442\u043e\u043c \u0441\u0435\u0430\u043d\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d.<\/strong><\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0447\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0435\u0440\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u043a \u0440\u0435\u0437\u0430 \u043d\u0430 \u0441\u043f\u0443\u0441\u043a\u0435.<\/p>\n<hr>\n<p>\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0441\u043b\u0443\u0447\u0430\u0435\u043c, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u044b\u0435 \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 <a href=\"https:\/\/ulearn.me\/\" rel=\"noopener noreferrer nofollow\"><u>\u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u0443\u0440\u0441\u044b \u043f\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e<\/u><\/a> \u043e\u0442 \u0444\u0438\u0440\u043c\u044b <a href=\"https:\/\/habr.com\/ru\/company\/skbkontur\/\" rel=\"noopener noreferrer nofollow\"><u>\u041a\u043e\u043d\u0442\u0443\u0440<\/u><\/a>. \u0422\u0430\u043a \u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043a\u0430\u043d\u0430\u043b <a href=\"https:\/\/www.youtube.com\/user\/Shmachilin\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0430\u0432\u043b\u0430 \u0428\u043c\u0430\u0447\u0438\u043b\u0438\u043d\u0430<\/u><\/a> \u043f\u043e WPF, \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435\u0435 \u0447\u0442\u043e \u044f \u0432\u0438\u0434\u0435\u043b \u043d\u0430 YouTube \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/537556\/\"> https:\/\/habr.com\/ru\/post\/537556\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 Corel Draw \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 17 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 VBA, \u043d\u043e \u0438 \u043d\u0430 C# VSTA. \u0422\u0430\u043a \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u044d\u0442\u0438\u043c \u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043c \u043c\u0435\u0447\u0442\u0443 \u043e \u043a\u043d\u043e\u043f\u043a\u0435 &#171;<strong>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/strong>&#171;.<\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u2013&nbsp; \u0441 2002 \u0433\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u043f\u0440\u0435\u043f\u0440\u0435\u0441\u0441 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c \u0432 \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e \u0445\u043e\u0431\u0431\u0438: \u0438 \u043a\u043e\u0434, \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043a\u0440\u0438\u0442\u0438\u043a\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u0444\u0438\u0441\u0442\u043e\u0432 \u2013 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0441\u043f\u0443\u0441\u043a\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445, \u043d\u043e \u0432 \u0440\u0435\u0430\u043b\u0438\u044f\u0445 \u043c\u043e\u0435\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430 \u044d\u0442\u043e \u043d\u0435 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0422\u0438\u0440\u0430\u0436\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0432\u0435\u043b\u0438\u043a\u043e \u0438 95% \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 CorelDraw.<\/p>\n<\/div>\n<\/details>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u0433\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430:<\/h4>\n<p><a href=\"https:\/\/www.coreldraw.com\/\" rel=\"noopener noreferrer nofollow\"><u>Corel Draw<\/u><\/a><\/p>\n<p><a href=\"https:\/\/visualstudio.microsoft.com\/ru\/vs\/community\/\" rel=\"noopener noreferrer nofollow\"><u>Visual Studio<\/u><\/a><\/p>\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=58317&amp;WT.mc_id=DX_MVP4025064\" rel=\"noopener noreferrer nofollow\"><u>Visual Studio Tools for Applications (\u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)<\/u><\/a><\/p>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f C#<\/p>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f WPF<\/p>\n<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f Visual Studio \u043e\u0442 \u201c<a href=\"https:\/\/github.com\/bonus630\" rel=\"noopener noreferrer nofollow\"><u>bonus360<\/u><\/a>\u201d:<\/p>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=bonus630.CorelDrawDockerTemplate\" rel=\"noopener noreferrer nofollow\"><u>CorelDraw Addons Templates<\/u><\/a><\/p>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=bonus630.CorelDrawAddonsPackerFree\" rel=\"noopener noreferrer nofollow\"><u>CorelDraw Addons Packer<\/u><\/a><\/p>\n<hr>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0442\u0443\u0434\u0438\u044e \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043f\u0430\u043f\u043a\u0438. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0432\u044b\u0431\u0440\u0430\u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u2013 \u201cCorelDRAW Docker Addon\u201d. \u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043c\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u201cMagicUtilites\u201d. <\/p>\n<figure class=\"bordered full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043e\u0448\u043a\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0434\u043e\u043a\u0435\u0440\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp; \u0442\u0430\u043a\u0436\u0435 \u201cMagicUtilites\u201d, \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 CorelDraw, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c. \u0416\u043c\u0435\u043c \u201cDone\u201d \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043a\u0430\u043a \u0440\u0443\u0442\u0438\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><em>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d \u0432 \u0444\u0430\u0439\u043b\u0435 Extensions.cs, \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/em><\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c F5 \u0438 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043c\u0435\u043d\u044e CorelDraw &#8212; Window &#8212; Dockers \u0432\u0430\u0448 \u0434\u043e\u043a\u0435\u0440. \u0421\u0435\u0439\u0447\u0430\u0441 \u043e\u043d \u043f\u0443\u0441\u0442\u043e\u0439 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442, \u043d\u043e \u043c\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c. <\/p>\n<hr>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>DockerUI.xaml<\/code> \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 XAML \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u0434\u043e\u043a\u0435\u0440.<\/p>\n<pre><code class=\"xml\">&lt;Grid Margin=\"0,0,0,0\"&gt; \t&lt;StackPanel&gt; \t\t&lt;Button Content=\"Text Convert to Curves\" Height=\"25\" Margin=\"4\" Click=\"Button_Click\"\/&gt; \t&lt;\/StackPanel&gt; &lt;\/Grid&gt;<\/code><\/pre>\n<p><em>\u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 <\/em><a href=\"https:\/\/ru.wikipedia.org\/wiki\/Model-View-ViewModel\" rel=\"noopener noreferrer nofollow\"><em><u>MVVM<\/u><\/em><\/a><em> (\u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 WPF), \u0430 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u043a\u043e\u0434 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0441\u044f, \u043e\u0431\u0435\u0449\u0430\u044e.<\/em><\/p>\n<hr>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>DockerUI.xaml.cs<\/code><\/p>\n<pre><code class=\"cs\">private corel.Application corelApp;<\/code><\/pre>\n<p>\u041a\u043b\u0430\u0441\u0441 <code>corel.Application<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u0434\u043e\u043a\u0435\u0440\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044e \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435.<\/p>\n<p>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <code>Button_Click<\/code>.<\/p>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0447\u0442\u043e \u0432 CorelDraw \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0444\u0430\u0439\u043b. \u0418 \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442, \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   if (corelApp.ActiveDocument == null) \t\treturn; }<\/code><\/pre>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>ActiveDocument<\/code> \u0442\u0438\u043f\u0430 <code>corel.Application<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) { \tif (corelApp.ActiveDocument == null) \t\treturn;  \tcorelApp.BeginDraw();  \tcorelApp.EndDraw(); }<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <code>BeginDraw()<\/code> \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u0432\u044b\u0437\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <code>EndDraw()<\/code> \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.&nbsp;<\/p>\n<p>\u0412 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   if (corelApp.ActiveDocument == null)     return;    corelApp.BeginDraw();    foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     foreach (corel.Shape shape in page.Shapes.All())     {       if (shape.Type == corel.cdrShapeType.cdrTextShape)         shape.ConvertToCurves();     }   }    corelApp.EndDraw(); }<\/code><\/pre>\n<\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>ConvertToCurves()<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e\u0442 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u0440\u0438\u0432\u044b\u0435.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 <strong>\u201cText Convert to Curves\u201d<\/strong> \u043d\u0443\u0436\u0435\u043d \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043d\u0435\u043c. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438, \u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u043b\u0438 \u0432 PowerClip \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u0440\u0438\u0432\u044b\u0435 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442.&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a Corel Draw \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 <code>corel.Shape<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 <code>corel.Shape<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u0435\u0440\u043d\u0451\u0442 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 <code>cdrGroupShape<\/code>. \u0422\u043e\u0433\u0434\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0441\u044c \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <code>Shapes<\/code>, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>cdrBitmapShape<\/code>, \u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Bitmap<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u0415\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Type<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>cdrGuidelineShape<\/code>, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>Guide<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e.&nbsp;<\/p>\n<p>\u0423\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e corel \u043e\u0431\u044a\u0435\u043a\u0442 \u2013 PowerClip \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 PowerClip-\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>PowerClip<\/code> \u043d\u0430 null.<\/p>\n<p><strong>\u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043a\u043e\u0434\u0443.<\/strong><\/p>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0434\u0432\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430.&nbsp;<\/p>\n<pre><code class=\"cs\">private void MakeToAllPages() {   if (corelApp.ActiveDocument == null)     return;   corelApp.BeginDraw();   foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     MakeToShapeRange(page.Shapes.All());   }   corelApp.EndDraw(); }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>MakeToAllPages<\/code> \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<pre><code class=\"cs\">private void MakeToShapeRange(corel.ShapeRange sr) {   foreach (corel.Shape shape in sr)   {     if (shape.Type == corel.cdrShapeType.cdrGroupShape)       MakeToShapeRange(shape.Shapes.All());      if (shape.PowerClip != null)       MakeToShapeRange(shape.PowerClip.Shapes.All());      if (shape.Type == corel.cdrShapeType.cdrTextShape)       shape.ConvertToCurves();   } }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>MakeToShapeRange<\/code> \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u0440\u0443\u043f\u043f\u043e\u0439 \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 PowerClip-\u043e\u043c \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442. \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 corel \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u0432 \u043a\u0440\u0438\u0432\u044b\u0435.<\/p>\n<pre><code class=\"cs\">private void Button_Click(object sender, RoutedEventArgs e) {   MakeToAllPages(); }<\/code><\/pre>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 <code>Button_Click<\/code> \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages<\/code>.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0435\u043a\u0441\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0438 PowerClip.<\/p>\n<hr>\n<h4>\u041d\u043e \u0434\u043e\u043a\u0435\u0440 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u044d\u0442\u043e \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043d\u043e\u043f\u043e\u043a.<\/h4>\n<pre><code class=\"xml\">&lt;StackPanel&gt;   &lt;Button Content=\"Text convert to curves\" Height=\"25\" Margin=\"4\" Click=\"ConvertToCurves\"\/&gt;   &lt;Separator Margin=\"4\"\/&gt;   &lt;Button Content=\"Uniform fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"UniformFillToCMYK\"\/&gt;   &lt;Button Content=\"Outline fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"OutlineFillToCMYK\"\/&gt;   &lt;Button Content=\"Fountain fill to CMYK\" Height=\"25\" Margin=\"4\" Click=\"FountainFillToCMYK\"\/&gt;   &lt;Separator Margin=\"4\"\/&gt;   &lt;Button Content=\"Bitmap to CMYK\" Height=\"25\" Margin=\"4\" Click=\"BitmapToCMYK\"\/&gt;   &lt;Button Content=\"Resample Bitmap to 300 dpi\" Height=\"25\" Margin=\"4\" Click=\"ResampleBitmap\"\/&gt; &lt;\/StackPanel&gt;<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a.<\/p>\n<pre><code class=\"cs\">private void ConvertToCurves(object sender, RoutedEventArgs e){}  private void BitmapToCMYK(object sender, RoutedEventArgs e){}  private void UniformFillToCMYK(object sender, RoutedEventArgs e){}  private void OutlineFillToCMYK(object sender, RoutedEventArgs e){}  private void FountainFillToCMYK(object sender, RoutedEventArgs e){}  private void ResampleBitmap(object sender, RoutedEventArgs e){}<\/code><\/pre>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 corel \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToShapeRange<\/code>. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0441\u0442, \u043d\u043e \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0435\u0441\u0442\u044c \u043b\u0438 \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0438\u043b\u0438 \u043e\u0431\u0432\u043e\u0434\u043a\u0430 \u0443 corel \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0427\u0442\u043e\u0431\u044b \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToShapeRange<\/code>, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages()<\/code> \u043d\u0430 <code>MakeToAllPages(Action&lt;corel.Shape&gt; action)<\/code>. \u0422\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToShapeRange<\/code> \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0438 \u0435\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443. \u0410 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>MakeToAllPages<\/code> \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u0432\u044b\u0437\u043e\u0432.<\/p>\n<pre><code class=\"cs\">private void MakeToAllPages(Action&lt;corel.Shape&gt; action) {   if (corelApp.ActiveDocument == null)     return;   corelApp.BeginDraw();   foreach (corel.Page page in corelApp.ActiveDocument.Pages)   {     MakeToShapeRange(page.Shapes.All(), action);   }   corelApp.EndDraw(); }  private void MakeToShapeRange(corel.ShapeRange sr, Action&lt;corel.Shape&gt; action) {   foreach (corel.Shape shape in sr)   {     if (shape.Type == corel.cdrShapeType.cdrGroupShape)       MakeToShapeRange(shape.Shapes.All(), action);      if (shape.PowerClip != null)       MakeToShapeRange(shape.PowerClip.Shapes.All(), action);      action(shape);   } }<\/code><\/pre>\n<p><em>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430.<\/em><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u0445 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0430 <code>MakeToAllPages<\/code>&nbsp;\u0441 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p><strong>\u0414\u0430\u043b\u0435\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a\u043e\u0434\u0430.<\/strong><\/p>\n<pre><code class=\"cs\">private void ConvertToCurves(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.Type == corel.cdrShapeType.cdrTextShape) \/\/ \u0435\u0441\u043b\u0438 \u0442\u0435\u043a\u0441\u0442       s.ConvertToCurves(); \/\/ \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u043a\u0440\u0438\u0432\u044b\u0435   }); }  private void BitmapToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.Type == corel.cdrShapeType.cdrBitmapShape) \/\/ \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430       if (s.Bitmap.Mode != corel.cdrImageType.cdrCMYKColorImage) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK         s.Bitmap.ConvertTo(corel.cdrImageType.cdrCMYKColorImage); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK   }); }  private void UniformFillToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.CanHaveFill) \/\/ \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043b\u0438\u0432\u043a\u0430       if (s.Fill.Type == corel.cdrFillType.cdrUniformFill) \/\/ \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0441\u043f\u043b\u043e\u0448\u043d\u0430\u044f         if (s.Fill.UniformColor.Type != corel.cdrColorType.cdrColorCMYK) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK           s.Fill.UniformColor.ConvertToCMYK(); \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 CMYK   }); }  private void OutlineFillToCMYK(object sender, RoutedEventArgs e) {   MakeToAllPages((s) =&gt;   {     if (s.CanHaveOutline) \/\/ \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u0432\u043e\u0434\u043a\u0430       if (s.Outline.Type == corel.cdrOutlineType.cdrOutline) \/\/ \u043e\u0431\u0432\u043e\u0434\u043a\u0430 \u0435\u0441\u0442\u044c         if (s.Outline.Color.Type != corel.cdrColorType.cdrColorCMYK) \/\/ \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 CMYK<\/code><\/pre>\n<\/hr>\n<\/hr>\n<\/hr>\n<\/hr>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-316417","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316417"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316417\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}