NEEDED: Succinct example of rotating a canvas 90 degrees

jima

Member
Licensed User
Longtime User
New User. I need an uncluttered example of rotating (the current contents of) a canvas 90 degrees. Here's my code:

bmptemp = cvsLayer(1).Bitmap
rectsrc.Initialize(0,0,bmptemp.height,bmptemp.width)
rectdest.Initialize(0,0,bmptemp.Height,bmptemp.Width)
cvsLayer(1).DrawBitmaprotated(bmptemp,rectsrc,rectdest,90)

The bitmap is a square with one letter centered up and down on the left edge. The code above appears to rotate such that letter appears at the top edge, upside down at the right edge and appears at the bottom edge. What am I missing please.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…