Page 1 of 1

custom Texture for filling area

PostPosted: Fri Jan 18, 2019 11:47 am
by peppemath
Generally when I draw a series HighLow or bands they can choose the fill color even with a gradient.
Is it possible to fill the area not with a color but with a pattern / texture like the one in the picture?

Re: custom Texture for filling area

PostPosted: Mon Jan 21, 2019 3:16 pm
by ArctionKestutis
Yes, it is possible to use bitmap fill. All the objects with Fill property support Fill.Style=Bitmap. Afterwards just add image, set layout etc. (Fill.Bitmap.Image, Fill.Bitmap.Layout etc.).

Hope this helps.

Re: custom Texture for filling area

PostPosted: Thu Jan 24, 2019 3:02 pm
by peppemath
Grazie! Perfect!
Next a screenshot of my demo
But I still have a problem; in the example I used a band and I can not re-fill the whole area vertically; I tried to change the three values of BitmapFillLayout but not iresco to get what I want. Need to set another?

Re: custom Texture for filling area

PostPosted: Fri Jan 25, 2019 7:26 am
by peppemath
Pardon, I was wrong to create the texture image; now everything is ok by setting BitmapFillLayout.Tile

Re: custom Texture for filling area

PostPosted: Fri Jan 25, 2019 7:37 am
by ArctionKestutis
Setting Fill.Bitmap.Layout to 'Tile' or 'Stretch' will fill all object's area. Wrong pattern (as you noticed already) or 'Center' option could make fill incomplete.

Re: custom Texture for filling area

PostPosted: Fri Jan 25, 2019 8:12 am
by peppemath
PERFECT!!!!!!
Grazie!!!

Re: custom Texture for filling area

PostPosted: Fri Jan 25, 2019 9:21 am
by peppemath
Excuse me again a question: the grid that I created is a png image that is transparent within the individual squares. When it draws, however, there is always a background color, how can you eliminate it?

Re: custom Texture for filling area

PostPosted: Fri Jan 25, 2019 12:01 pm
by ArctionKestutis
Is it not ?
Code: Select all
Fill.Bitmap.ImageTintColor

Re: custom Texture for filling area

PostPosted: Mon Jan 28, 2019 10:17 am
by peppemath
uhm, doesn't work :(

But it works with
series1.Fill.Color = Colors.Transparent;
series1.Fill.GradientColor = Colors.Transparent;