winzip icon

Realtime Image Rotation using C dll

Email
Submitted on: 2/17/2015 5:01:00 AM
By: Lefteris Eleftheriades (from psc cd)  
Level: Intermediate
User Rating: By 9 Users
Compatibility: VB 5.0, VB 6.0
Views: 1611
 
     Rotate a picture at any given angle in realtime. Also scale it, use transparent color, alphablending and hue change. Uses a C dll source included. For the compiled dll: http://www2.cs.ucy.ac.cy/~cs06ee1/rotatedll.zip *UPDATE: 22/7/2010 Fixed memory leak*

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Realtime Image Rotation using C dll
'**************************************
Private Declare Function rotatedc Lib "rotate.dll" Alias "rotatedc" (ByVal aHDC As Long, ByVal Angle As Single, ByVal X As Long, ByVal Y As Long, ByVal W As Long, ByVal H As Long, ByVal hBitmap As Long, ByVal pScale As Single, ByVal TraspColor As Long, ByVal Alpha As Single) As Long
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 28 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

8/29/2015 3:23:53 AM

Could not download dll at given link.

Also found another link at
"http://freesourcecode.net/cprojects/86254/Realtime-Image-Rotation-DLL-c-project-a nd-source-code#.VeEjrX0l_Mx"


(If this comment was disrespectful, please report it.)

 
9/20/2016 6:09:30 PMA_X_O

I found this slightly tricky to get up and running but once going, it's very good.

The C DLL source code is in the project zip. so you don't need to search for it.

Here's what I did.
Put all the "C", files into a new folder. then drag them into your Visual C++ compiler
Build the DLL. The DLL is now in the new folder

Put the DLL in the Original Project Folder. that also contains the VBP

In the VB Form1 Code,
Un-Comment the Private Declare Function with the Alias "_rotatedc@60"
Then Comment out the Private Declare Function with the Alias "rotatedc@60"

that's it, a great DLL and VBProject


(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.