mask

After making a hex mask CTRL+C and CTRL+V is not allowed

Hi, I have a small problem. After making a hex mask, I can not copy/paste with CTRL C/V. If I right click in the textbox I can paste. But I would like to be able to just press CTRL V. If I delete the hex mask, CTRL C/V works fine. Here is a bit of the code: private void maskedTextBox1(Object sender, System.Windows.Forms.KeyPressEvent...

Setting mask for sprite

So i have this sprite that is say arbitrarily 100 x 100 which is added to the stage. Now when content is added to this sprite the sprite expands automatically as it should. I dont want this to happen, what i want is to set a defined boundary i.e. 100 x 100, if too much content is added i can be able to scroll it. My problem is i cannot a...

Button under Mask in Flash CS5

Is there a way to get a button to work that is under a mask in Flash CS5? ...

Oracle to_date function. Mask needed

I have string of date from xml file of such kind: '2010-09-09T22:33:44.OZ' I need to extract only date and time. I want to ignore symbol T and .OZ (time zone). Which mask I should use? Thanks in advance ...

HTML/CSS drawing a square window in a css mask

Hi, So I have a grid of images (map tiles) and I draw a semi-transparent mask over it using an absolutely positioned div with width and height set to 100%. I now want the user to be able to draw out a rectangle on the mask, with the mouse using mouse-down, drag, mouse-up. The rectangle would be drawn dynamically as the mouse moves, and...

Re-use toolbar icons in regular UIImageViews and add colors by masking

I have several icons I'm using for a toolbar, and I'd like to use some of these icons in a normal UIImageView. However, the primary background of my views is black, so the icon just shows up as a black image with a slight outline. How do I properly apply a mask so that it shows up like it does in a toolbar or tab bar? That is the image i...

iphone Mask an an irregular Image but keep a border

Hi there, My app is caching images perfectly but I'd like to add a border to the masked image. I'm currently using the following code : CGImageRef CopyImageAndAddAlphaChannel(CGImageRef sourceImage) { CGImageRef retVal = NULL; size_t width = CGImageGetWidth(sourceImage); size_t height = CGImageGetHeight(sourceImage); C...

How can I animate a lot of text behind a graphic?

The page would be white with the shape of the Taj Majal punched out (i.e., a mask) with the letters scrolling from right to left on a layer below the mask. See a visual comp here. Each line of text should scroll independently, and loop around when it reaches the left edge. I've looked at SVG, HTML5/canvas, and jQuery marquee. Is one of...

Mask www.oldsite.com/home with www.newsite.com

How can I mask so all instances of www.oldsite.com are replaced with www.newsite.com example: I'd like to replace: http://www.oldsite.com/home/b.jsp?id=9912&ln=115-991632 with www.newsite.com/home/b.jsp?id=9912&ln=115-991632 ...

alpha mask dll help(should be easy)

im a hobbyist game programmer, i mostly excel at ruby. ive been trying to write a dll in c#(though i dont care what lang its in) that allows me to create an alpha mask. all i really need is the one method eg: public Bitmap make_image(Bitmap image, Bitmap mask) { //code here return new_bitmap } if you are wondering why dont i just do it...

Create a mask from difference between two images (iPhone).

How can I detect the difference between 2 images, creating a mask of the area that's different in order to process the area that's common to both images (gaussian blur for example)? Also, some code of this procedure would be very much appreciated. EDIT: I'm using this code (from this answer) to get the RGBA value of pixels: + (NSAr...

Photoshop - copy vector mask from a document to another

I "vectorized" a raster image using vector masks made with the pen tool. Now I need these masks (on separate layers) in another document. How could I copy them, to secure their vector-ness, and have them as resize-able objects? I am using Photoshop CS5. ...

clipping an image objective-c

I created a Grid of Images. The frames of those images are squares-shaped(CGRects). Unfortunately the images fill-fits the square unproportionally. But I would like to "crop" or "mask" the given image. Which means my frames will show only parts of an image but proportionally correct. I tried contentModes of UIImageView but no luck. for(...

Saving masked UIImage to disk

Hi there, I'm trying to save a multiple masked image to disk. The code below explains How I do it. The maskImagewithStroke masks 2 times a picture : first time to provide an irregular stroke to a texture then I'm remasking it with a bigger mask to get a stroke from it. It's the bast way I found to get an irregular stroke around my text...

Saving masked UIImage to disk produces wrong image

Hi there, I've an app with a lot of masked image. For performance sake I ned to generate those masked image on disk and then incorporate them in the app (they'll be uploaded on demand nut not masked on the fly because it is already done). I'm using this kind of coding NSString *pngPath = [NSHomeDirectory() stringByAppendingPathCompon...

What is a mask value?

I'm learning the SDL library and one of the functions to create a surface is SDL_CreateRGBSurface. The four parameters I'm wondering about are R, G, B, and A masks. What exactly is a mask in this context? I'm also following a book about SDL and the author passed in 5 bits of red, 5 bits of blue, and 6 bits of green for the mask values....