Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
0
votes
1 answer

.htaccess code to redirect main domain to dir without url change

Here's my situation. I have a legacy website in the root folder of my public_html. This is cumbersome because I have other subdomains and addon domains to manage. So I've designed a web 2.0 website to replace the legacy one, and here is my…
0
votes
1 answer

How to create irregular shape mask

I'm trying to make a mask with bitmaps, i.e. has such a shape below. Here my image mask: All, in above image, is not white is transparent. So applying a mask she cuts a rectangle instead of this form. Is there any way to implement it? Primitives…
skyboy
  • 3
  • 1
0
votes
3 answers

Flex unable to see mask

I have two sprites, the first is the mask and the second on is going to be masked by the first. Right now I can see the second sprite that is masked, but not the first that is doing the masking. Is there a way to show the sprite that is doing the…
asawilliams
  • 2,908
  • 2
  • 30
  • 54
0
votes
1 answer

Using jQuery Masked Input Plugin, is it possible to make the first part of a phone number optional?

Using this plugin : http://digitalbush.com/projects/masked-input-plugin/ Is it possible to make something like this happen? (As the user inputs the phone…
Fierceblood
  • 360
  • 1
  • 2
  • 10
0
votes
2 answers

Can anyone fix this 12/24 hour time regexp?

I have been scouring the internet for a way of doing 12/24 hour time format only ( _ _ : _ _ with no AM/PM) validation. The requirement is that it must actively prevent keypresses that would invalidate the time. It also must accept either 1 or 2…
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
1 answer

How to create a mask from an image

I have an image in NSbundle. below is the image http://tinypic.com/view.php?pic=2093tvt&s=5 I want to use this image as mask image and want to apply it on any image so that other image will come in same shape as above images shape. So its a…
287986
  • 93
  • 1
  • 12
0
votes
1 answer

URL Masking with htaccess 1

so this is my url: http://www.mysite.com/mypage.php?PropertyBuyRent=rent&Developer=&Resort=&City=&State=&Country=&Price= I want to write the following htaccess: if PropertyBuyRent=rent and Resort value is not empty then url should be…
John Doe
  • 79
  • 5
0
votes
2 answers

URL Masking with htaccess

I have a url below: http://www.mysite.com/mypage.php?PropertyBuyRent=rent&Developer=&Resort=&City=&State=&Country=&Price= if PropertyBuyRent=rent and all other variables are empty then url should be…
John Doe
  • 79
  • 5
0
votes
3 answers

Masking two images

I want to do a selective masking between two images in iOS similar to the mask function in Blender. There are two images 1 and 2 (resized to same dimensions). Initially only image 1 will be visible but wherever user touches any area upon image1, it…
Soumyajit
  • 435
  • 1
  • 9
  • 19
0
votes
1 answer

How to Mask Sensitive Fields in Logs With Asterisks. C++

I have a requirement to mask sensitive fields(like SSN, Address, Names) from logs using '***' instesd of the text. The codebase is entirely C++. It is a huge code base. I have noticed that most of the sensitive info is printed in xml tags in the…
roshan213
  • 243
  • 1
  • 5
  • 13
0
votes
0 answers

Trying to mask a UIImage to display UITableViewCell contents behind it while scrolling UITableView in iOS

I am building an application where I have a ruler (that is a UIImage) that I use to scroll a UITableView. My UITableView has UILabels on each cell that display text. When the user leaves the ruler over a cell, the ruler has on it a UILabel that…
syedfa
  • 2,801
  • 1
  • 41
  • 74
0
votes
1 answer

Masking an RGB Image with Binary Mask

I have an RGB image (M x N x 3 matrix) in MATLAB that I read in. I also have a Binary mask (M x N matrix) for the image, which is simply 0 for some region of interest and 1 everywhere else. I'm trying to figure out how to mask the RGB image with…
Duane
  • 3
  • 1
  • 1
  • 3
0
votes
2 answers

Cocos2d - hiding, clipping or masking sprite like in game Candy Crush

I have a problem and I saw it also in the game Candy Crush Saga, where they successfully dealt with it. I would like the sprite to show only when it is in the board (see image link below). The board can be of different shapes, like the levels in the…
svarad
  • 21
  • 6
0
votes
0 answers

Remove white background from masked image in android

I want to crop a bitmap in polygon shape drawn above that bitmap. I'm using masking of bitmap to do this. The operation succeeds well, unfortunately the resulted bitmap after masking has a white background in cropped area,as you can see in the…
Dory
  • 7,462
  • 7
  • 33
  • 55
0
votes
1 answer

How to mask off a area when drawing using GDI+

I am trying to draw a rectangle that has two colours yellow and green using a diaganol split with text in the middle. The problem is that I want the text in the middle to be white where it is over the green and black when it is over the yellow. An…
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143