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?
custom Texture for filling area
Moderator: Queue Moderators
custom Texture for filling area
- Attachments
-
- patterntexture.png (34.62 KiB) Viewed 32227 times
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: custom Texture for filling area
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.
Hope this helps.
Re: custom Texture for filling area
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?
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?
- Attachments
-
- patterntexture002.png (70.51 KiB) Viewed 32194 times
Re: custom Texture for filling area
Pardon, I was wrong to create the texture image; now everything is ok by setting BitmapFillLayout.Tile
- Attachments
-
- patterntexture002b.png (65.5 KiB) Viewed 32191 times
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: custom Texture for filling area
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
PERFECT!!!!!!
Grazie!!!
Grazie!!!
- Attachments
-
- patterntexture002c.png (69.8 KiB) Viewed 32189 times
Re: custom Texture for filling area
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?
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: custom Texture for filling area
Is it not ?
Code: Select all
Fill.Bitmap.ImageTintColor
Re: custom Texture for filling area
uhm, doesn't work ![Sad :(](./images/smilies/icon_e_sad.gif)
But it works with
series1.Fill.Color = Colors.Transparent;
series1.Fill.GradientColor = Colors.Transparent;
![Sad :(](./images/smilies/icon_e_sad.gif)
But it works with
series1.Fill.Color = Colors.Transparent;
series1.Fill.GradientColor = Colors.Transparent;
- Attachments
-
- patterntexture002e.png (90.44 KiB) Viewed 32163 times