How can I rotate an image or picture inside a picturebox? is there something specific I can go to, or do I have to programme the whole thing myself?
Printable View
How can I rotate an image or picture inside a picturebox? is there something specific I can go to, or do I have to programme the whole thing myself?
You would have to program the whole thing yourself.
Well, there are two options, but not available on all operating systems:
1. API: PlgBlt. NT-based systems have this (not Win9x)
2. GDI+ has built in rotation calls. Available on WinXP & above, optional on Win98 and above.
PlgBlt is easier overall but produces only fair quality since it uses nearest-neighbor algorithms. GDI+ requires more work, but does offer far higher quality via bi-linear and bi-cubic algorithms. Again GDI+ is only guaranteed to be on XP and above.