Click here to Skip to main content
15,892,005 members
Articles / Desktop Programming / MFC

ImageStone - A Powerful C++ Class Library for Image Manipulation

Rate me:
Please Sign up or sign in to vote.
4.81/5 (250 votes)
6 Dec 2011Zlib3 min read 120K   51.5K   405  
An article on a library for image manipulation
<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>&nbsp;</p></td>
  </tr>
  <tr valign="top">
    <td class="style1"><span class="style1">OS:</span></td>
    <td><p>windows (a SDK project) </p>
      <p>&nbsp;</p></td>
  </tr>
  <tr valign="top">
    <td class="style1"><span class="style1">Place:</span></td>
    <td><p>example/003/src</p>
      <p>&nbsp;</p></td>
  </tr>
  <tr valign="top">
    <td class="style1"><span class="style1">Notice:</span></td>
    <td><p>&nbsp;</p>
      <p>&nbsp;</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>&nbsp;</p>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The zlib/libpng License


Written By
Team Leader PhoXo
China China
graduate from University of Science and Technology of China at 2002.

Now I work at www.phoxo.com.

Comments and Discussions