<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div><br></div><div><br></div><div><!--emptysign--></div><div><div style="font-size:12px;padding:2px 0;" class="xm_mail_oringinal_describe">---Original---</div><div style="font-size:12px;background:#f0f0f0;color:#212121;padding:8px!important;border-radius:4px;line-height:1.5;"><div class="xm_mail_oringinal_describe"><b>From:</b> "张 鹏霞"<IMCEAEX-_O=FIRST+20ORGANIZATION_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=00034001FACCC2E2@sct-15-20-5482-0-msonline-outlook-77830.templateTenant></div><div class="xm_mail_oringinal_describe"><b>Date:</b> Tue, Jan 16, 2024 18:14 PM</div><div class="xm_mail_oringinal_describe"><b>To:</b> "cairo@cairographics.org"<cairo@cairographics.org>;</div><div class="xm_mail_oringinal_describe"><b>Subject:</b> cairo_format_t Support format missing Gray</div></div><br>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:DengXian;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">A problem was found when I using this library.</span></p>
<p class="MsoNormal"><span lang="EN-US">The cairo_format_t do not declare gray Image format. That means I can not create a surface with cairo_content_gray, but now I need this function in my project.</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So, I'd like to ask you, Whether cairo will support grayscale surface. Like, asupport format CAIRO_FOMAT_G8, then I can create an gray content surface for this format.</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For reference, cairo's dependency library,pixman, support the following formats:</span></p>
<p class="MsoNormal"><span lang="EN-US">/* 8bpp formats */</span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US">……………</span></p>
<p class="MsoNormal"><span lang="EN-US"> <span style="color:red"> PIXMAN_g8 = PIXMAN_FORMAT(8,PIXMAN_TYPE_GRAY,0,0,0,0),</span></span></p>
<p class="MsoNormal" style="text-indent:11.25pt"><span lang="EN-US">……………..</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Zoey,</span></p>
<p class="MsoNormal"><span lang="EN-US">Wait for your reply</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">从<span lang="EN-US"> Windows </span>版<span lang="EN-US"><a href="https://go.microsoft.com/fwlink/?LinkId=550986"><span lang="EN-US"><span lang="EN-US">邮件</span></span></a></span>发送</p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p> </o:p></span></p>
</div>
</div>