mask

Create masking effect over a view

I would like to create a masking effect over a UIView in order to accomplish the following. I will display a sealed box in the screen and the user will be able to touch (scratch) the screen in order to reveal whats behind that image(UIView). Something similar to those lottery tickets where u r suppose to scratch some cover material thats...

ActionScript Drag and Drop Display Objects With Mask And Filter?

i've created a sprite to drag and drop around the stage. the sprite is masked and has it's mask as it's child so that it too will drag along with the sprite. everything works fine until i add a drop shadow filter to the sprite. when the drop shadow is added, i can only mousedown to drag and mouseup to drop the sprite if the mouse even...

Showing only part of background image using CSS3

Hi! 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? ...

Format Text Field While User Enters Data

Hello, so here is what I am trying to do. I have a birth date text field, while the user in puts text i want the field to automatically put it in the form YYYY-MM-DD. Basically while the user types it replaces the Y's M's and D's but leaves the hyphen. I am not sure how to go about this i may need a mask or something. I know this i...

preg_replace array: mask regex characters problem

I want to replace word groups by links. The word groups are defined in a multi-dimensional array. There will be thousands of terms to be replaced, so an unindexed, light-weight and multi-dimensional array is needed. Nothing should be replaced when the term is followed by brackets or inside square brackets. Problem: The regex itself w...

Decent JavaScript mask for floating point numbers

Hello people, I'm developing a system in ASP.NET and I need a textbox mask to handle an input of floating-point numbers. I haven't yet found a javascript mask that would RESPECT the decimal point. I've tried several, including dFilter and "Mask JavaScript API" and none of them could do the job in a swift manner. The numbers I need to d...

Converting subnet mask "/" notation to Cisco 0.0.0.0 standard

Hi there, I've searched SO for help but could'nt find a answer to my question. Situation: I need to convert a "/NN" subnet mask notation (think IPTABLES) to a 0.0.0.0 cisco notation. NN are the number of "1" in the submask, from the lowest octet to the higher. Each octet are 8 bit integers. Possible solution: Make a array of 32 "0"...

Storing/querying binary sequences and searching with masks

I've found a good way to store some data in the database with a binary sequence, like 0b0101000 and find rows that give a positive result after applying a mask. For exemple : SELECT (0b0101010 & (1<<3 | 1<<5))>0; allows me to get rows with the 3rd or 5th bit on, no matter if the others bits are on or off. The problem is when I want to ...

ActionScript Creating Mask From Image Asset With Alpha

i want to create a mask based on an image with alpha transparency, therefore the image and the mask are not simply rectangles. is this possible? ...

Masking Textbox without affecting Model value in ASP.NET MVC

I need to mask the input box/text box in ASP.NET MVC 2 for Credit Card. But the masking shouldn't affect its binding to its model. I am trying to do something like this: [DataType(DataType.MaskedCreditCard)] similar to: [DataType(DataType.Password)] ...

UIImage masking gives black background on the iPhone (and not in simulator)

Hi there, I've got mask images w/o alpha channel, pure black and white with a black polygone on the center sourrounded by white. I've got png's image that I'd like to mask. the png have got an alpha channel. using the method here below : ok on simulator, but background is black on device ... any idea to fix that ? - (UIImage*) maskIm...

Is 000,000,000.00 greater than zero?

I have an input mask on my text box like 000,000,000.00 I have the following jQuery code to check the value of text box before submitting data. var txt_box = $('#txt_box').attr('value'); if(txt_box <= 0 ) But now even if I didn't input any data, the box remains empty with only the input mask, data is submitting. ...

customize jquery mask plug in

i am using jauery mask plugin from http://digitalbush.com/projects/masked-input-plugin/ i want to customize my plugin and try my besy to do it but i can't. What i want is i can enter digits only. all the digits will be formated automitcally (,) after every 3rd number. only two digits after (.) i use follwoing $("#product")...

C# Hex Mask for maskedtextbox input

I'm trying to set a hex mask for a textbox. So that only valid hex numbers can be entered. (And ',' and 'ENTER') It almost works. So far it will only allow small letters from a-f and numbers 0-9, but I can still enter capital letters GHIJKLM. (At first, when program is started it seems to accept one char ex k, but after it has excepted ...

PHP fopen using file mask

Is it possible/how can I open a text file in PHP using a file mask? The files are going to be named for example: abcdef_072810_999222.txt abcdef_072910_123456.txt abcdef_073010_888884.txt So I want to fopen or rename the file like this (notice the * mask) : "abcdef_".date("mdy")."_*.txt" I would like to avoid a read directory conte...

Possible to make a transparent gradient mask?

Hi, i have different images in a uiscrollview and i want to know if it´s possible to create an mask-overlay from from 100% - 50% - 0% transparency, so i get smooth fades when the images are moving out. ...

Does any of you know how to mask a URL in php ? or related to Javascriptor Ajax ?

Does any of you know how to mask a URL in php?? Like the one you see in free URL redirectional services (http://www.shorturl.com) I mean I have a url like http://www.my-server.com/ which will redirect me to http://www.some-other-server.com/abc.php But I want the URL in the address bar of my browser to show only this URL http://www.my...

In AS3, how to obtain visible size of loaded SWF that contains a mask?

I'm using UILoader to load SWF files which I have no source for. These SWF files were created in AS2. They use masks. Width and height return unmasked values. I'm trying to find the visible width and height of the clip so I can scale it properly. For example I want a SWF to fit within a 50x50 space. The visible SWF is 65x65 (but I don...

Why would you mask a base class member?

I have just learned how to mask a base class member (using new) but am missing the point as to why I would want to do that. Does masking provide us with a certain level of protection as is the case in using encapsulation? Please advise. ...

Can radgrid maskedcolumn display masked data in standard view?

I have a masked radgrid column for a phone number on a bigint column. The mask appropriately masks the edit form. It does not mask the data in the standard grid view. I understand that this is the intended behavior... however I'd like it to mask the displayed data too. Any ideas? EDIT: That is to say, as a standard grid item, I'd lik...