Re: rotate transparent bitmap

"[email protected] [wtl]" <[email protected]> 22 Apr 2016 22:36:03 -0700
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type:  text/plain;  charset=utf-8 
Content-Transfer-Encoding: base64

SSBzb2x2ZWQgaXQgd2l0aG91dCB1c2luZyBnZGkrIGJ1dCBub3JtYWwgZ2RpIHdpdGggU2V0
V29ybGRUcmFuc2Zvcm0NCiBSb3RhdGUgYSBiaXRtYXAgaW1hZ2UgaHR0cDovL3d3dy5jb2Rl
Z3VydS5jb20vY3BwL2ctbS9iaXRtYXAvc3BlY2lhbGVmZmVjdHMvYXJ0aWNsZS5waHAvYzE3
NDMvUm90YXRlLWEtYml0bWFwLWltYWdlLmh0bQ0KDQogDQogDQogaHR0cDovL3d3dy5jb2Rl
Z3VydS5jb20vY3BwL2ctbS9iaXRtYXAvc3BlY2lhbGVmZmVjdHMvYXJ0aWNsZS5waHAvYzE3
NDMvUm90YXRlLWEtYml0bWFwLWltYWdlLmh0bSANCiANCiBSb3RhdGUgYSBiaXRtYXAgaW1h
Z2UgaHR0cDovL3d3dy5jb2RlZ3VydS5jb20vY3BwL2ctbS9iaXRtYXAvc3BlY2lhbGVmZmVj
dHMvYXJ0aWNsZS5waHAvYzE3NDMvUm90YXRlLWEtYml0bWFwLWltYWdlLmh0bSBSb3RhdGUg
YSBiaXRtYXAgaW1hZ2UNCiANCiANCiANCiBWaWV3IG9uIHd3dy5jb2RlZ3VydS5jb20gaHR0
cDovL3d3dy5jb2RlZ3VydS5jb20vY3BwL2ctbS9iaXRtYXAvc3BlY2lhbGVmZmVjdHMvYXJ0
aWNsZS5waHAvYzE3NDMvUm90YXRlLWEtYml0bWFwLWltYWdlLmh0bSANCiBQcmV2aWV3IGJ5
IFlhaG9vIA0KIA0KIA0KICANCg==

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type="text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


<p>I solved it without using gdi+ but normal gdi with SetWorldTransform</p><p><a rel="nofollow" target="_blank" href="http://www.codeguru.com/cpp/g-m/bitmap/specialeffects/article.php/c1743/Rotate-a-bitmap-image.htm">Rotate a bitmap image</a><br class="yui-cursor"></p><div class="link-enhancr-attachment link-enhancr-element" id="enhancrCard_1" style='width:450px;font-family:"Helvetica Neue", "Helvetica", "Arial", "san-serif", "Roboto";'> <table class="link-enhancr-element" style="width:450px;height:170px;margin-top:5px;margin-bottom:5px;display:block;" cellspacing="0" cellpadding="0"> <tbody><tr class="link-enhancr-element"> <td class="link-enhancr-element" style="height:1px;background-color:rgb(229, 229, 229);" colspan="6"> <div class="link-enhancr-element" style="height:1px;background-co
 lor:rgb(229, 229, 229);"></div> </td> </tr> <tr class="link-enhancr-element"> <td class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);" rowspan="2"> <div class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);"></div> </td>  <td class="link-enhancr-element" style="width:168px;height:168px;vertical-align:middle;background-color:rgb(0, 0, 0);" rowspan="2"> <div align="center" class="link-enhancr-element" style="width:168px;"> <a rel="nofollow" class="link-enhancr-card-urlWrapper link-enhancr-element" style="color:rgb(0, 0, 0);text-decoration:none;" target="_blank" href="http://www.codeguru.com/cpp/g-m/bitmap/specialeffects/article.php/c1743/Rotate-a-bitmap-image.htm"> <img width="168" height="38" class="link-enhancr-thumbnail-image l
 ink-enhancr-element" style="margin:auto;display:block;" alt="image" src="http://www.codeguru.com/images/cg_logo3.gif"> </a> </div> </td> <td class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);" rowspan="2"> <div class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);"></div> </td>  <td class="link-enhancr-element" style='width:100%;font-family:"Helvetica Neue", "Helvetica", "Arial", "san-serif", "Roboto";vertical-align:middle;' colspan="2"> <div class="link-enhancr-text-part link-enhancr-element" style="width:279px;height:130px;line-height:16.5px;background-color:rgb(255, 255, 255);"> <div class="link-enhancr-element" style="padding:7px 20px 0px 14px;"> <span class="link-enhancr-element icon icon-shrink link-enhancr-toggle"></span
 > <span class="link-enhancr-element icon icon-close link-enhancr-delete"></span> <a rel="nofollow" class="link-enhancr-card-urlWrapper link-enhancr-element" style="color:rgb(0, 0, 0);text-decoration:none;" target="_blank" href="http://www.codeguru.com/cpp/g-m/bitmap/specialeffects/article.php/c1743/Rotate-a-bitmap-image.htm"> <span class="link-enhancr-element link-enhancr-card-title" style="margin:0px 0px 4px;color:rgb(0, 0, 0);line-height:21px;overflow:hidden;font-size:18px;font-weight:normal;display:inline-block;max-height:43px;">Rotate a bitmap image</span> </a>  <div class="link-enhancr-card-description link-enhancr-element" style='color:rgb(153, 153, 153);line-height:20px;overflow:hidden;font-family:"Helvetica Neue", "Helvetica", "Arial", "san-serif", "Roboto";font-size:13px;max-hei
 ght:81px;'>Rotate a bitmap image</div>  </div> </div> </td> <td class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);" rowspan="2"> <div class="link-enhancr-element" style="width:1px;background-color:rgb(229, 229, 229);"></div> </td> <tr> <td class="link-enhancr-element" style='width:100%;font-family:"Helvetica Neue", "Helvetica", "Arial", "san-serif", "Roboto";vertical-align:middle;'> <div class="link-enhancr-element" style="padding:7px 20px 9px 15px;font-size:0pt;"> <a rel="nofollow" class="link-enhancr-card-url link-enhancr-element" style="color:black;text-decoration:none;cursor:pointer;" target="_blank" href="http://www.codeguru.com/cpp/g-m/bitmap/specialeffects/article.php/c1743/Rotate-a-bitmap-image.htm"> <span class="link-enhancr-element link-enhancr-v
 iew-on" style="line-height:11px;overflow:hidden;display:inline-block;max-height:13px;min-width:119px;max-width:179px;"> <span class="link-enhancr-element link-enhancr-mobile-no-resize" style="color:rgb(153, 153, 153);line-height:11px;font-size:9px;vertical-align:middle;"> View on <span style="font-weight:bold;">www.codeguru.com</span> </span> </span> </a>  </div> </td> <td class="link-enhancr-element" style='width:100px;font-family:"Helvetica Neue", "Helvetica", "Arial", "san-serif", "Roboto";vertical-align:middle;'> <div class="link-enhancr-element link-enhancr-preview-wrapper" style="padding:9px 20px 12px 0px;text-align:right;line-height:11px;overflow:hidden;font-size:0pt;max-height:13px;min-width:80px;max-width:100px;"> <span class="link-enhancr-element link-enhancr-preview-by link-en
 hancr-mobile-no-resize" style="color:rgb(153, 153, 153);line-height:11px;font-size:9px;vertical-align:middle;"> Preview by Yahoo </span> </div> </td> </tr>  <tr class="link-enhancr-element"> <td class="link-enhancr-element" style="height:1px;background-color:rgb(229, 229, 229);" colspan="6"> <div class="link-enhancr-element" style="height:1px;background-color:rgb(229, 229, 229);"></div> </td> </tr> </tbody></table> </div><p> &nbsp;</p>



<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

      
  

    
    <div id="fromDMARC" style="clear:both; margin-top: 10px;">
         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
         Posted by: [email protected]         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=488621/grpspId=1705006764/msgId=16717/stime=1461389764" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

  
<!-- |**|begin egp html banner|**| -->

<br>



   
     
 
        <!-- |**|begin egp html banner|**| -->
        <div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/wtl/info;_ylc=X3oDMTJkZHM5azVrBF9TAzk3MzU5NzE0BGdycElkAzQ4ODYyMQRncnBzcElkAzE3MDUwMDY3NjQEc2VjA3Z0bARzbGsDdmdocARzdGltZQMxNDYxMzg5NzY0" style="text-decoration: none;">Visit Your Group</a></span>

     <ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
                                                    </ul>
  </div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
  <a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJjNXQ1MjRpBF9TAzk3NDc2NTkwBGdycElkAzQ4ODYyMQRncnBzcElkAzE3MDUwMDY3NjQEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzE0NjEzODk3NjQ-" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border: 0;"/></a>
  <div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

   


  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV--