Questions tagged [opacitymask]

59 questions
0
votes
1 answer

WPF Button with Rectangle and OpacityMask

I would like to make an UI like Facebook navigation bar. My idea was to make the Background of the Button to Transparent and put an icon on it as an OpacityMask of a Rectangle and change the Fill of it. I've got so confused creating the…
Cris
  • 1
  • 1
0
votes
1 answer

OpacityMask not working with WPF WindowsFormsHost?

I'm trying to put a rounded border on a control which is hosted through a WindowsFormHost object. It seems like no matter what I set for OpacityMask, it has no effect on the rendering. Is there something I've missed? Here is the XAML code I am…
dythim
  • 920
  • 7
  • 24
0
votes
1 answer

OpacityMask on Android

I have problems with OpacityMask on Android. If another Image is set behind OpacityMask, you will see black rectangle. Here is a minimum example: import QtQuick 2.5 import QtQuick.Controls 1.2 import QtGraphicalEffects 1.0 Item { Image { …
Skroopa
  • 37
  • 7
0
votes
1 answer

Multiple Image SVG file in Umbraco Media Type

I'm pretty good at Razor/MVC, but very new to Umbraco. I have a source design that contains a Jpeg and a Greyscale PNG wrapped up in an SVG such that I can have transparent background images in far less memory than usual. Just wondering how I can…
Mark Rabjohn
  • 1,643
  • 14
  • 30
0
votes
1 answer

DrawingContext.PushOpacityMask() with BitmapImage does not work

I want to take a given BitmapImage and use its grayscale/black-and-white representation as an opacity mask on a DrawingContext. I got far enough to do the color conversion, so I ended up with the follwing state of a demo application: Method on…
0
votes
1 answer

Can not create OpacityMask from Byte[]

I have a rectange which I want to set an OpacityMask for. I tried it directly from a PNG Image, which was working. But since my image comes from a Database later, I tried saving the PNG into an array first, and then restoring the BitmapImage from…
Lorgarn
  • 136
  • 1
  • 15
0
votes
1 answer

Opacity Masks in WPF - Excluding Shapes

I'm currently creating a PDF viewer of sorts that, if the user moves their cursor over one of a number of areas of interest on the current slide (defined in an external file), the rest of the slide will darken, highlighting that area. Currently,…
Dan McElroy
  • 426
  • 4
  • 19
0
votes
1 answer

Make border gap using Opacity Mask

What i need to achieve : what i have : I need to some how create a gap , iv'e tried using something like the BorderGapMaskConverter from the GroupBox template but i can't seem to figure out how to position it ( for starters i would like to apply…
eran otzap
  • 12,293
  • 20
  • 84
  • 139
0
votes
1 answer

Image Partial Transparency in WPF

I aligned two images one on top of the other, and I am trying to set a transparent circle on the top one For some reason, The EllipseGeometry Radius and Center Attributes have no effect. Here is the XAML code Thank you !
Uri Goren
  • 13,386
  • 6
  • 58
  • 110
0
votes
2 answers

Is it possible to fade a horizontal gradient into a vertical gradient to MASK something

I have three background gradients, the horizontal mask, top border and bottom border which achieves this effect, fading borders into the background: Using this code (repeated with browser prefixes about a million times.. ugh): background: …
user1425011
  • 119
  • 2
  • 13
0
votes
1 answer

Spotlight effect in wpf

Is there a way to achieve spotlight effect in wpf? http://www.youtube.com/watch?v=LgLw29c-qr8 I can understand OpacityMask will let me do this, but how can I render an image (or a background) to a Canvas but will be shown as white in all except a…
sudarsanyes
  • 3,156
  • 8
  • 42
  • 52
0
votes
1 answer

WPF OpacityMask not behaving as expected

I am working on a countdown control for a WPF application. The following xaml demonstrates what I am after:
jon
  • 728
  • 5
  • 12
-2
votes
1 answer

Opacity mask an image in wpf weird bahvior

I try to make an opacity mask for an image in wpf via this xaml:
Daveed
  • 131
  • 1
  • 9
-14
votes
3 answers

I want to use 'opacity' above a html homepage of my site. Can I use it?

I am making a website but I just want to display a notice (only once when member open website) . This notice must display just above the html homepage (because homepage may change from member to member). I want to use 'opacity' to make a fade page…
1 2 3
4