mask

mask for one digit and two digit

Hi, I have been using this $("#SomeId").mask("99"); jquery mask for text box where I want to enter only two digit numbers, but i do not know which mask to put in order to enable entering only one digit number and two digit. From 0-99 with mask above I cannot enter one digit number, the text box become blank when it lose focus. Can a...

Using maskMoney input pluging -- still need some assistance

Ok, considering the regular expressions aren't working properly and there are no errors, I'm going to try and use the money mask. The goal is still to only allow numeric characters and a decimal. With maskMoney, that does the work for you. Also, I need to be able to successfully calculate each cell. As of right now, the masks are wo...

Use another control as an opacity mask in WPF?

Hi. I'm trying to use the OpacityMask property combined with a VisualBrush so that when you drag an image over another control (such as another image, rectangle, or any other control), the part of the image that is over the second control has a different opacity. That is, the image has some non-zero base opacity, and any part of the im...

htaccess mask dynamic url with a static url

I'm trying to do something with .htaccess that I'm not sure can be done. First thing I did is hide the .php extensions using the following code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Works great. Now what I'm trying to do and can't seem to figure out is...

Precise OpacityMask

Suppose I need to set an opacity mask on a WPF control that highlights a portion of it in precise position (suppose a 50x50 square at (50;50) position). To do that I create a DrawingGroup containing 2 GeometryDrawing objects: 1 semi-transparent rectangle for the whole actual size of the control and 1 opaque rectangle for highlighted area...

ExtJS mask panel while actions are made

Hello. I have an Ext west panel from my viewport and I have a handler on a button that first removes all elements from west then ads another element, then does a doLayout(). So there are 3 things this function does on the click of the button. I would like to add a mask to the west panel when the button is clicked and unmask after all 3 t...

PHP - Mask polygon over image

Hi Everyone (this is my first post), I am trying to figure a way of cropping a polygon out of an image. I have been reading other similar code. It seems that most code is based around the following process: -Resize the image to fit the width and height of the polygon shape, -Create a blank image of an unusual colour the same size, -O...

Mask a whole animation happening in a UIImageView

I need to mask a whole animation that takes place in a UIImageView. I tried subclassing the UIImageView and doing the masking in its drawRect call but that doesn't get called on every frame of the animation as I expected (it doesn't get called at all actually) even though the animation plays fine. Anyone has any experience on this? ...

How to get a permission mask in Sharepoint 2007?

How to get a permission mask in Sharepoint 2007? ...

YUI modal panel with non-standard background mask value.

I am trying to setup a modal YUI panel above a YUI Tabview. For CSS purposes [1] the tabs have a z-index that goes up to about 20 (depending on how many tabs there are). The problem I am facing is that the mask that YUI draws for the modality of the panel is behind whatever nonzero mask the tabs have, and so the tabs peek through. So ...

"Masking" an animation? iPhone SDK

I have been looking into ways of masking images on the iPhone. I came across this solution http://iphonedevelopertips.com/cocoa/how-to-mask-an-image.html which works great for still images. What I want to do is mask an animation in a UIImageView. From what I have read I don't think this is possible whilst also achieving a decent frame...

Implementing Mask property to display data in DataGridView Winforms control

I'm aware of articles and examples about using MaskedTextBox for editing data in a DataGridView control, i.e. DataGridViewCustomColumn DataGridViewMaskedText GenericDataGridView etc. What I need is to display string values (like telephone numbers, SSN...) with a given Mask in DataGridView control. I'd like to set Mask property for a...

How do I merge two masks together in MATLAB?

I have two masks that I would like to merge together, overwriting mask1 with mask2 unless mask2 has a zero. The masks are not binary, they are some value that is user defined in the region of interest and 0 elsewhere. For example if: mask1=[0 5 5;0 5 5]; mask2=[4 4 0;4 4 0]; then I would want an output of [4 4 5;4 4 5]. And if I then...

Actionscript3 alpha masking?

Hi all, I was trying to apply a spotlight effect on a google map application. Specifically, I draw a circle that follows the mouse and set it as a mask over the map. The problem is only the map area within the circle shows up, I know it's what mask is supposed to look like, but is there a way to make the area outside the circle some kin...

Masks in AIR with Actionscript 3

I'm trying to do a mask on a circle shape in ActionScript 3 (I'm using the Flex AIR framework). It has to do with the ecological footprint, each circle representing one earth. This ecological footprint picture is inside a container. The problem is that the mask seems to be fixed, though the picture floats. When I scroll the container dow...

Flash as3 mask size

Senario I have a movieclip ('myMask') which has 3 layers inside: 1. Mask shape (face silhouette) 2. picture (of person) 3. square shape with alpha 0% (this is slightly bigger than mask shape) 1 is in the center of 3 1 is masking 2 The picture is much bigger than 2 and 3 and is at a rotated angle + positioned off center. Problem I need...

Trying to generate several digit intervals in one number (LUA)

Basically I have to use a random function that can return a number between 0 and 2^16-1. I am trying to make use of this and generate let's say, 6 intervals between 1 and 6 (thinking of dice poker). Basically use that one number that is randomly generated for me (I can specify range only) and preferably only have to call it once. Then t...

Which is the best input mask???

Hi everyone, I have been putting only jQuery mask so far, but I figured out that in Mozilla they have some problem. For example if I mask input with $(".someClass").mask("9?9"); and enter only one digit '1' Mozilla will submit value of "1_" which fails validation (is a number) but user definitely entered correct value. Is there a mask...

Using getObjectsUnderPoint with a mask

I am trying to find elements underneath the "invisible" part of a mask by using getObjectsUnderPoint, but unfortunately this only works in the visible part of the mask. Does anyone have an idea what the best solution would be to still be able to access elements underneath the invisible part? Thanks! ...

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 mask? ...