<html>
<head>
<title>tutorial</title>
<Style>
BODY, P, TD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt }
H2,H3,H4,H5 { color: #ff9900; font-weight: bold; }
H2 { font-size: 13pt; }
H3 { font-size: 12pt; }
H4 { font-size: 10pt; color: black; }
PRE { BACKGROUND-COLOR: #FBEDBB; FONT-FAMILY: "Courier New", Courier, mono; WHITE-SPACE: pre; }
CODE { COLOR: #990000; FONT-FAMILY: "Courier New", Courier, mono; }
.style1 {
color: #0000FF;
font-weight: bold;
}
.style2 {color: #0000FF}
</style>
</head>
<body bgcolor="#FFFFFF" color=#000000>
<H2>example: 003</H2>
<table width="80%" border="0" bgcolor="#FFFFEC">
<tr valign="top">
<td class="style1"><span class="style1">Purpose:</span></td>
<td><p>Create region from a bitmap </p>
<p> </p></td>
</tr>
<tr valign="top">
<td class="style1"><span class="style1">OS:</span></td>
<td><p>windows (a SDK project) </p>
<p> </p></td>
</tr>
<tr valign="top">
<td class="style1"><span class="style1">Place:</span></td>
<td><p>example/003/src</p>
<p> </p></td>
</tr>
<tr valign="top">
<td class="style1"><span class="style1">Notice:</span></td>
<td><p> </p>
<p> </p></td>
</tr>
<tr valign="top">
<td class="style1"><span class="style2">Usage:</span></td>
<td><p> use FCWin32::ConvertAlphaImageToHRGN to create HRGN from a 32bpp image.</p>
<p>This function determinate whether a point in region by test pixel's alpha value, if the pixel's alpha value == 0, the point outter of region, otherwise point in region. and the image's R-G-B channel be ignored</p>
<p>this demo load a tga image (in resource) then convert to 8bpp, as a 32bpp image's alpha channel </p>
</td>
</tr>
</table>
<p> </p>
</body>
</html>