Questions tagged [opacitymask]
59 questions
0
votes
1 answer
How do I apply a RadialGradient to a Shape?
Here's what I have so far:
a RadialGradient shown below in blue
a Shape shown below in green
What I want, however, is to use the RadialGradient as an OpacityMask so that the outer ring of the green Shape is 100% opaque, but the straight line…

Edward
- 6,964
- 2
- 29
- 55
0
votes
1 answer
WPF anchor Grid OpacityMask for Moving Grid Content
I have a hexagonal Polygon that I am trying to use as an OpacityMask, then have content inside the polygon that can scroll and be clipped at the edges. The problem I encounter is that as the content moves, the OpacityMask moves with it (though by a…

Trinary Concepts
- 3
- 3
0
votes
1 answer
Using QML OpacityMask to round off upper corners of overlayed rectangle
I am trying to create a rounded rectangle, with the top portion filled with a solid color, and lower portion filled with text. I am overlaying the upper portion of the rounded rectangle (outerRectangle in white with black border) with another…

TSG
- 4,242
- 9
- 61
- 121
0
votes
1 answer
How to create transparent text with opaque background in WPF C#
Anyone have an idea of how to even approach this?
I dont have any code to present as I don`t have a clue where to start, thats why Im posting this.
My plan is to dynamically load a string array of some 7000 words over the WPF App WrapWindow with…

Thomas
- 69
- 2
- 11
0
votes
1 answer
Qml OpacityMask reduces image quality
I have a Rectangle that contains an Image.
I'm trying to create a rounded image with a black border.
I've tried using an OpacityMask, but when I do, it reduces the image quality.
Also there is a very small amount of white space in some places…

Jeff
- 95
- 9
0
votes
0 answers
SVG: masking or filtering opacity of elements underneath aka "lowlighting"
This is a shot in the dark, but maybe there is a way to do it:
I have data laid out in rows and pseudo-columns in an

Sideways S
- 601
- 7
- 12
0
votes
0 answers
OpacityMask for Custom Image
I have a list of cells which the user can assign images (transparent PNGs) to. I'd like to display an outline on each cell around the PNG when it's selected. I think this is achievable with an OpacityMask, but from what I've read and my limited use…

Echilon
- 10,064
- 33
- 131
- 217
0
votes
2 answers
How can I create an opacity mask in wpf that doesn't scale?
Ok, I've created a PNG-24 with transparency. It's basically a grayscale image that uses 'colors' in between black and transparent instead of black and white. I did this so I can use this as the Opacity Mask of a colored rectangle, thus rendering…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286
0
votes
1 answer
XAML: Access OpacityMask VisualBrush path inside a button control
I'm a newby in designing WPF frontends, please bear with me. Currently I am creating a style for my XAML apps and need assistance at one point.
I have 3 XAML files: 1 for my brush painting paths, 1 for my styles/colores and the mainWindow.xaml.…

AtzeBK
- 1
- 4
0
votes
2 answers
Use image transparency to filter mouse events
I've been digging through examples, tutorials, and forums all day and I cannot seem to wrap my head around what seems like a simple concept.
Essentially, I am creating a color wheel color selection tool. The tool is a ring in shape, so I do not want…

4verage
- 29
- 2
- 8
0
votes
1 answer
Set Size of Rectangle to image size
i'm using this, to show icons that can change their color

StefanG
- 239
- 3
- 12
0
votes
1 answer
WPF OpacityMask weird behavior
I think I might have found a bug in WPF, or maybe I just don't fully understand how OpacityMasks work. As you can see on the first image, I have a diamond shaped path and a red circle. My goal is to make everything outside the diamond invisible. It…

Lázár Zsolt
- 685
- 8
- 29
0
votes
3 answers
Adding transparent filter to Panorama background like Market place
I am trying to add a transparent layer to my panorama background to dim the background image so the content can be displayed regardless of the colours in the images. Just like in the WP7 Market Place or the Pictures Hub on the phone.
I have played…

Tee
- 183
- 2
- 9
0
votes
1 answer
Rectangle.OpacityMask disappearing after removing the first object from the ObservableCollection
I have a Rectangle with an Opacity Mask, which works most of the time.
The ListView binds to an ObservableCollection. When, and only when I remove the first item from the collection, the OpacityMask seems to disappear on all items in the list.
All…

slavs
- 108
- 1
- 7
0
votes
1 answer
Android change opacity only on a region of bitmap
I would like to create a brush effect, which when the user drags his/her finger on the screen, the brush only changes the alpha of the image/bitmap below. For example, if the brush opacity is set to 50%, then applying brush should
Set the…

N.M
- 11
- 3