mask

Showing only part of background image using CSS3

你说的曾经没有我的故事 提交于 2019-12-25 10:59:27
问题 Is it possible to show only a part of a backgroundimage when using CSS3? I want to use an image as a background but only show half of it, so is there something like a mask you can define for your backgroundimages? 回答1: Well only problem is that "clip-path", "mask" and "filter" (no not the IE "filter" but SVG "filter") only works for Firefox and Safari (yes no Chrome). And they do it differently. Firefox needs an svg clippath specified via an id eg: .box { clip-path: url("roundedrect.svg#cp1")

Showing only part of background image using CSS3

末鹿安然 提交于 2019-12-25 10:59:11
问题 Is it possible to show only a part of a backgroundimage when using CSS3? I want to use an image as a background but only show half of it, so is there something like a mask you can define for your backgroundimages? 回答1: Well only problem is that "clip-path", "mask" and "filter" (no not the IE "filter" but SVG "filter") only works for Firefox and Safari (yes no Chrome). And they do it differently. Firefox needs an svg clippath specified via an id eg: .box { clip-path: url("roundedrect.svg#cp1")

Mask all views below a UIView except background

五迷三道 提交于 2019-12-25 07:47:18
问题 I have a transparent section header in a UITableView, which should let the cells scroll behind it but show the background image which is behind the tableview instead of the cells. I need a way to apply some sort of clipping mask to the section header which would make any views which go beneath it transparent, or something which shows the appropriate part of the background image as the header's background and follows when the header moves. I have seen this How to mask UITableViewCells

ImageMagick: Is there an equivalent of Gimp's tool to “shrink” and “grow” a selection?

狂风中的少年 提交于 2019-12-25 03:44:46
问题 I have a black and white mask image produced with this ImageMagick command: convert in.jpg -threshold 85% out.png Giving me this result: I'd like to reduce the size of each piece like if I was doing it with Gimp by selecting the white background, inverting the selection and shrink it by X pixels. Is it possible to do it with ImageMagick and if yes, how ? 回答1: In Imagemagick, you can use -morphology close to reduce the white holes in the black. But if you use too large a kernel size, it will

Matching template images with masks using OpenCV and C++

Deadly 提交于 2019-12-25 02:11:56
问题 How can I match a masked image using matchTemplate() in OpenCV with C++? This is my masked template image: And this is my source image: 回答1: Look at opencv example. You gotta call the matchTemplate function: matchTemplate( img, templ, result, match_method ); 回答2: matchTemplate 's fifth argument is a mask array which you can use for this purpose. In your case, you'll want a binary mask. That is, a Mat with: depth CV_8U , and dimensions equal to your template image, and the pixels you want to

Set backend title for Mask-Elements in Typo3

此生再无相见时 提交于 2019-12-25 00:13:38
问题 I have a Typo3 server. On that I created some different content elements with mask. In this elements there are often repeating content, like texts or other stuff. So the editors make a new element in the backend, there they can add a headline and as much text parts as they want. Often it looks like this: Thats good, the editor can see a "preview" of the textparts. In this example "Karriere,Partner...". This naming happens automatically. My Problem is, some times there arent any titles. Its

OpenGL Stencil - Exclude transparent pixels

左心房为你撑大大i 提交于 2019-12-24 16:46:02
问题 I have this texture that I want to use as as mask using the Stencil buffer : Then I want to draw an image IMG on the screen which should appear only where the above image is visible (where there's color), thus excluding transparent pixels above the top edge and below the gradient. The problem is whenever I draw my image IMG on the screen it appears everywhere where the image has been drawn, whether the pixels are transparent or not. So I thought about using the ALPHA_TEST but it's gone in the

Help to improve this javascript input mask

安稳与你 提交于 2019-12-24 11:35:23
问题 Features Only numbers A unique dot (.) But...i need improve to allow user digits only two numbers after the dot Valid examples: 121213 123450.10 12345678910111213.39 The current code (adapted from this, not need to keep exactly the same code... ) : <HTML> <HEAD> <SCRIPT language=Javascript> <!-- function isNumberKey(evt,obj){ var containsDot = obj.value.indexOf("."); var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)){ if(charCode ==

mod_rewrite mask folder name

可紊 提交于 2019-12-24 11:29:11
问题 Looking to do the following: domain.com - root directly with unique files that are different than individual cities. domain.com/city_name - this folder will have CMS elements and individual content based on the city the user ends up at. Ultimately, all files to control the CMS will be in /city_name but I page a file called pageLoader.php?page=$1 so I can do a $_GET['']; and request the name of the city they've entered, example: domain.com/vancouver So, what I need to do is "mask" the city

How can I use a PathGeometry as a mask for a BitmapSource (or any image data)?

感情迁移 提交于 2019-12-24 09:39:12
问题 Assuming I have a BitmapSource (actually I have access to the raw pixels as well if necessary), how can I use a PathGeometry as a mask to cut out certain parts of the image? 01234567890123456789 0 -------------------- 1 | + + | 2 | * | 3 | * ) | 4 | * | 5 | ( | 6 -------------------- Assuming I have a PathGeometry that describes a rectangle that goes from (0, 0) to (8, 3), I would like to be able to get one of the following two images: 01234567890123456789 0 -------------------- 1 | + | 2 | *