Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1475

Rotation and scale in one routine (also for 32bit bitmaps)

$
0
0
This is an example on another example. I get the Tanner_H's code from there Color Management (ICC Profile) support in VB6: guide and sample project and I put a textbox where we can write the angle (0 is North) in degrees (I have specify 1.4 and 1.6 zoom factors). As we see the rotation is perfect for transparent png.
Also I made two options, one for 1:1 render and the other as fit to picturebox.
Pictureboxes are in non AutoRedraw mode, and that is for the ICC profile (for specific HDC). This was there as I found it in the code from Tanner_H.
The rotation and scale use single floating computation on a 2X2 pixels. Also canvas get bigger to hold any rotation.


NewOne.zip

George
Attached Files

Viewing all articles
Browse latest Browse all 1475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>