[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    [cairo] About CAIRO API
From:       lixuanzhao <lixuanzhao () dascom ! cn>
Date:       2022-03-11 3:34:03
Message-ID: 202203111134013304300 () dascom ! cn
[Download RAW message or body]

[Attachment #2 (text/plain)]

Cairo£º
hello£¬
I have a question and hope to receive it. 
It is found that there is a function  
cairo_public cairo_surface_t *
cairo_image_surface_create_from_png (const char *filename);
 If the read PNG background color is non transparent, the read data is 0xff.
 Can this function only read the data of transparent background color?
 I hope to get a reply and answer. Thank you.




lixuanzhao
[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
	MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
	MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
	MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
	MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
	FONT-SIZE: 10.5pt; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>

<META name=GENERATOR content="MSHTML 11.00.9600.16428"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV>Cairo£º</DIV>
<DIV style="TEXT-INDENT: 2em">hello£¬</DIV>
<DIV style="TEXT-INDENT: 2em">
<DIV>I&nbsp;have&nbsp;a&nbsp;question&nbsp;and&nbsp;hope&nbsp;to&nbsp;receive&nbsp;it.&nbsp;</DIV>
 <DIV>It&nbsp;is&nbsp;found&nbsp;that&nbsp;there&nbsp;is&nbsp;a&nbsp;function&nbsp; 

<DIV style="FONT-WEIGHT: bold">cairo_public&nbsp;cairo_surface_t&nbsp;*</DIV>
<DIV 
style="FONT-WEIGHT: bold">cairo_image_surface_create_from_png&nbsp;(const&nbsp;char 
*filename);</DIV></DIV>
<DIV>&nbsp;If&nbsp;the&nbsp;read&nbsp;PNG&nbsp;background&nbsp;color&nbsp;is&nbsp;non&nbsp;transparent,&nbsp;the&nbsp;read&nbsp;data&nbsp;is&nbsp;0xff.</DIV>
 <DIV>&nbsp;Can&nbsp;this&nbsp;function&nbsp;only&nbsp;read&nbsp;the&nbsp;data&nbsp;of&nbsp;transparent&nbsp;background&nbsp;color?</DIV>
 <DIV>&nbsp;I&nbsp;hope&nbsp;to&nbsp;get&nbsp;a&nbsp;reply&nbsp;and&nbsp;answer.&nbsp;Thank&nbsp;you.</DIV></DIV></DIV>
 <DIV>&nbsp;</DIV>
<HR style="HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>lixuanzhao</SPAN></DIV></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic