Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Tile an image

i have this problem that i don't know how to solve... i want to know how do tile an image in Delphi... i have this .jpg picture that i want to tile as an background to the program....

can someone please help me with this

Comments

  • zibadianzibadian Member Posts: 6,349
    : i have this problem that i don't know how to solve... i want to know
    : how do tile an image in Delphi... i have this .jpg picture that i
    : want to tile as an background to the program....
    :
    : can someone please help me with this
    :
    One of the easiest ways is to make a TBitmap, which is big enough for your form. Then you can use the TBitmap.Canvas.Draw() method to paint the picture on that bitmap, wherever and how many times you want/need.
    Finally place that bitmap within a TImage, which is placed as background on your form.
  • Duvan SlabbertDuvan Slabbert Member Posts: 10
    : : i have this problem that i don't know how to solve... i want to know
    : : how do tile an image in Delphi... i have this .jpg picture that i
    : : want to tile as an background to the program....
    : :
    : : can someone please help me with this
    : :
    : One of the easiest ways is to make a TBitmap, which is big enough
    : for your form. Then you can use the TBitmap.Canvas.Draw() method to
    : paint the picture on that bitmap, wherever and how many times you
    : want/need.
    : Finally place that bitmap within a TImage, which is placed as
    : background on your form.

    AAA... thanks allot man. finally somethings starts to work around here

  • Duvan SlabbertDuvan Slabbert Member Posts: 10
    ok, here is a way for all that didn't understand the code...

    take your image and make a large one of it in paint or something, just copy and paste the thing as if it was tiled...

    then place an TImage on your form or on whatever you want to use as a background...

    then set the TImage align properties to alClient...

    when the form is enlarged, the TImage will do the same and in that way you create the impression of the image being tiled on the form
Sign In or Register to comment.