Results 1 to 6 of 6

Thread: Rect image

  1. #1

    Rect image

    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

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Rect image

    copyrect
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    Rect image

    can i use it on a bmp which is only loaded but not displayed on dxcanvas?

  4. #4

    Rect image

    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.

  5. #5

    Rect image

    thanks
    it worked perfect

  6. #6
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Rect image

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •