![]() I'll probably be working on this as a side project, but if anybody has any thoughts on a different approach, or would like to take a stab at it, I've uploaded my branch to dev/cazamor/tile-background for you to try out. ![]() repeatedly use the ImageBrush to draw the image in a tile format (doable with the two things above). ![]() get the size of the image it's trying to draw.get the size of the canvas it's trying to fill.And this TileImageBrush would just do the following: You can add the following value to configure the opacity. Windows Terminal Background Image Opacity. So, this gets us closer, but the big problem here is we need to create something like a TileImageBrush to extend an ImageBrush. You can use the backgroundImageOpacity to set the opacity of the for the background image, and this is super helpful when you have a full background image. Background image can be changed only when using ‘ gfxterm ’ for. Without arguments remove currently loaded background image. Image is stretched to fill up entire screen unless option -mode ‘ normal ’ is given. ![]() The difference here, though, is that Grid.Background uses a Brush (or, in our case, an ImageBrush). Command: backgroundimage -mode ‘stretch’‘normal’ file Load background image for active terminal from file. I was able to remove the Image control, and instead have the background image appear as the Background property for the Grid we're using in the Terminal Control ( Grid.Background docs). The real problem here is that WUX::Controls::Image does not have a tile setting. ![]() I had to create a new enum which wasn't too bad. I was able to add the tile setting to backgroundImageStretchMode. Uploaded my branch to dev/cazamor/tile-background. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |