andrewo
07-15-2001, 11:35 PM
Is it possible to rotate an image using one image box only?
and if so could some1 give me an example?
~
and if so could some1 give me an example?
~
Rotating pictures using a single "image box"andrewo 07-15-2001, 11:35 PM Is it possible to rotate an image using one image box only? and if so could some1 give me an example? ~ BillSoo 07-16-2001, 12:17 AM The big problem with rotating an image box is that it has no hDC or hWnd properties. This severly limits the use of API calls. It does have a PICTURE property, and this picture property refers to a STDPICTURE object that has some properties that *MAY* be useful, but offhand, I haven't done much with that. Your best bet is to use a picturebox since it has an hDC property. Is there some reason why you have to have an imagebox instead? "I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder andrewo 07-16-2001, 01:06 AM I dont know if i have to use image boxes but i want to rotate the people in my game so i dont have to draw so many other pictures would a picture box be good enough for this? ~ BillSoo 07-16-2001, 03:01 AM Sure....a picturebox is pretty much the same as an image box except that it has more properties and methods and takes more resources. But if you don't have too many of them, then the extra resources required are not significant. "I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder andrewo 07-16-2001, 05:54 AM Hey Billsoo on your code with the rotate image it doesnt seem to rotate on the middle axis of the image is there anyway to fix that? ~ |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum