how can i get a part of an image a rectangle for example.
cous i am doing bitmap fonts and need to get just one char
how can i get a part of an image a rectangle for example.
cous i am doing bitmap fonts and need to get just one char
copyrect
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
can i use it on a bmp which is only loaded but not displayed on dxcanvas?
cairnswm, shame on you... you should know better than to give such an answer. (Though I can understand why you did it )
dxdraw1.Surface.draw(10,10, rect(10,10,20,20), myAlfabetImage, false);
Whereas rect(10,10,20,20) is the rectangle around the letter you want to draw on the screen. And yes, this will only display the letter on the screen, even if the origional image has not been drawn.
Sorry
was rushed....
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Bookmarks