Reputation: 1161
I would like to use GDI+ and C# to be able to draw lines consisting of images in WinForms.Please note that It is not to draw simple lines over an image but to draw lines made up of images like *******************************(each * is a specific image).
For example, i have an imageA, and the line will be like imageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageAimageA
Do you have an example or some advice?
Upvotes: 0
Views: 62
Reputation: 385
You can use Graphics.DrawImage
method. You need to pass your Image ImageA
as first parameter and a Point
, the point in your form where you want your ImageA to be located.
If you follow this link, you will find the usage of this method and its other overrides.
Hope this helps! ^^
Upvotes: 1
Reputation: 4606
Create Pen by using TextureBrush as parameter and then use Pen in Graphics.DrawLine method.
Upvotes: 1