PDA

View Full Version : Rect image



hammer
21-04-2004, 04:54 PM
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

cairnswm
22-04-2004, 01:26 PM
copyrect

hammer
23-04-2004, 12:34 PM
can i use it on a bmp which is only loaded but not displayed on dxcanvas?

Traveler
23-04-2004, 09:12 PM
cairnswm, shame on you... you should know better than to give such an answer. (Though I can understand why you did it :wink: )

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.

hammer
24-04-2004, 01:09 PM
thanks
it worked perfect

cairnswm
24-04-2004, 01:33 PM
Sorry

was rushed....



:)