View Single Post
  #4 (permalink)  
Old January 7th, 2012, 11:42 AM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
Thanks: 2
Thanked 96 Times in 95 Posts
Default

CInt converts a number to an integer. So in this code, it takes the floating point result of scaling the bitmap's width and height and converts them to integers because you can only make bitmaps with integer heights and widths.

You're probably using a newer version of Visual Basic than the one I used to write that example. If you open the .sln file, it should upgrade it to your version. It should only take a minute or so.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote