masking

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")...

HTML/CSS - create alpha mask over image

Hi, I'd like to create an effect in a site I’m building where an image is masked by an overlay. The overlay should create a “fade out” effect — I don’t actually want anything animated, but the overlay should make the image look as if it’s fading to the background colour at the edges. Something like this: http://imgur.com/fqtc9.png I p...

Iphone masking colors: Remove background color

Hi, I have a series of avatars; each has a hot pink background of RGB:255,0,255. Rather than going through every avatar, and manually removing the pink background; is there a way to make Objective C remove the background (masking it) for me? An example of an avatar follows: One thing I am concerned about is that the masking is done...

mask image via another image

Alright what I am trying to do is: given an image where there is a circle within that image that is "blank". I want to take an existing image from user library and then mask it so that only a certain part of that image is shown on the "blank" image.. I have tried a few masking code but they all seem to work the other way around ... ...

Masking an image with selectable text with SVG - possible?

One neat typographic effect often seen headlines in magazines etc, is to select a really bold font and put an image inside of the text. Here's a random example of the effect: In web design, there is no way to do this with plain html/css/js. It could be done with flash or with a bitmap image but those techniques obviously have some big ...

Alpha masking in c# System.Drawing?

Hi, I'm trying to draw an image, with a source Bitmap and an alpha mask Bitmap, using the System.Drawing.Graphics object. At the moment I loop X and Y and use GetPixel and SetPixel to write the source color and mask alpha to a third Bitmap, and then render that. However this is very inefficient and I am wondering if there is an faster wa...

Creating a transparency mask for html.

Has anyone come across an effective way to mimic Webkit's -webkit-mask-box-image: url(filename.png) functionality? I'm trying to use non-square animated elements, and would prefer not having to do the masking on server-side. I'm set on supporting at least Gecko and Webkit, but if I can manage Opera and IE, that would be a bonus. ...

Mask the image but getting Negative image of actuall image.

Hi guys I am trying to mask the image with another image but i did not success. I am using the following code. -(UIImage*) maskImage:(UIImage *)image withMask:(UIImage *)maskImage { CGImageRef maskRef = maskImage.CGImage; CGImageRef mask = CGImageMaskCreate(CGImageGetWidth(maskRef), CGImageGetHeight(maskRef), CG...

Multiplying RGBA with two CGImageRefs

I'd like to multiply r, g, b and a values of two CGImages, to use a single image as both a mask (in its alpha channel) and tint (in the rgb channels). I first tried simply: CGContextDrawImage(context, CGRectMake(0, 0, _w, _h), handle()); CGContextSetBlendMode(context, kCGBlendModeMultiply); CGContextDrawImage(context, CGRectMake(0, 0, o...

Masking the password field in java

I am developing a Java command line application and I need to display an asterisk (*), or any similar sign, when the user inputs the password. I have tried using the replace() method but it accepts only one character. Is there a way to pass all the letters and numbers as an argument for this replace method. Or else what is the method of ...

Quartz 2D Experts -- Masking method crashes program after 6 or 7 consecutive calls

Hi all, I'm looking for a Quartz 2D expert that might be able to see a flaw in the following code: self.imageView.image = [self maskView:self.imageView withMask:[self createMaskForTool:self.toolView modifyForOutline:NO]]; - (UIImage *)maskView:(UIView *)view withMask:(UIImage *)maskImage { UIGraphicsBeginImageContext(view.bound...

Merge 2 image where one is moveable

Hi all, I want to merge two images where one is a greeting card with a heart shaped portion transparent and another is the image of a couple. Now I want the image of couple movable so that i can move them and resize them to set in that heart part and then I want to save that mixture of image as one image and send it as attachment in mail...

Password masking does not terminate the program when needed

I developed the following application in which I needed to masking the PIN and terminate the program after the user has entered the wrong PIN thrice. However, the program terminates only if i close the stopThread at the beginning (I commented it in the code below), however the password masking does not occur for all the three channces wh...

URL masking in JavaScript

I currently have the following JavaScript function that will take current URL and concatenate it to another site URL to route it to the appropriate feedback group: function sendFeedback() { url = window.location.href; newwin = window.open('http://www.anothersite.com/home/feedback/?s=' + url, 'Feedback'); } Not sure if this is ...

input time mask using jquery

I am using meioMask – a jQuery mask plugin to put time mask in a textbox. Here is the JsFiddle. Its working good. But I also need to to put hh:mm in the textbox, to let user know what to enter in the textbox. How to do this. EDIT: I also need to put am/pm in the mask. and I need 12 hrs time format. ...