clipping

Disappearing components??

Hi All, I have two problems that I have no idea how to fix... Flex. I have a canvas which contains a single myComponentA. A myComponentA contains a MyComponentB. The myComponentB contains a number of myComponentA's giving a tree structure...Ok so far. The structure is stored as an XML file. 1) When I load a big (60 or so components)...

Alpha + masking + clipping headache

Hi, Here's a graphical explanation of 1) what I have and 2) what I want http://tinyurl.com/yg5zboy My understanding is I need one or maybe two masks to accomplish this. As you can see, I want to combine both alpha channel (for the red semi circle) and a background transparency (to see the background shuttle, even through the hole in t...

ProgressBar clips the very top of value

I'm having a slight problem with reskinning a ProgressBar in WPF. Specifically, no matter what I do, it seems to clip the inner indicator at about 99%. I've tried all sorts of things, from clipping to OpacityMask, but I can't seem to stop the top from cutting off. Any ideas what's going on here? Code: <Style x:Key="BarrelStyle" ...

Streaming Flash Video Problem - Clipping

I have a simple flash video player that streams the video from a streaming media server. The stream plays fine and I have no problems with playing the video and doing simple functions. However, my problem is that on a mouse over of the video, I have the controls come up and when I do a seek or scrub on the video, I get little weird box...

WPF Clipping Problem

Hi, I have a UserControl which has a quadratic Image as a Child. This Image is at the bottom of the UserControl, and half of it is clipped (e.g. the Control's Height is 400, Image's height is 200 and it is set to y=300). Now, When I rotate the Image, it is still clipped like the way it was first. Like when rotating around 90 degrees, I...

how can move the child only inside the parent?

Recently I worked in a project using Flex. Its a Photo editing project. I have took a Canvas and take a image in that canvas using the code canvas.addChild(image) . Now i can move the image freely by using moving code. The image move inside the canvas and outside the canvas. I want to move the image/child only inside the canvas not outsi...

Multiple Clipped Rects to Create Collage in Core Graphics

I am creating a collage combined with elements from other images. Here is some ASCII art to explain what I am doing: Given images A, B and C, AAA, BBB, CCC AAA, BBB, CCC AAA, BBB, CCC I take part of A, part of B and part of C as columns: Axx, xBx, xxC Axx, xBx, xxC Axx, xBx, xxC ...and combine them in one image like this: ABC ABC A...

make one cell or div shrink to give room for others

I have a line of cells (or divs): cell1 cell2 cell3 cell4 I want cell1 cell2 and cell4 to always show all their data (but also to shrink to fit), and if there is not enough room on the line, i want cell2 to clip its data in order to prevent a wrapping of the line. I also would like cell4 to align to the right of the row. cell1 c...

Invert a Clipping Path in Expression Blend

I want to be able to invert a clipping path. Rather than use the path to show parts of an object, I want to use the clipping path to hide (cut into) an object. Does anyone know if this is possible? ...

How do I prevent clipping when rotating an image in C#?

Hi, I just went through a bunch of stuff trying to figure out how to get the image to even rotate. That works but now it's clipping and I'm not really sure how to make it stop... I'm using this rotateImage method: public static Image RotateImage(Image img, float rotationAngle) { //create an empty Bitmap image Bitmap ...

Bezier Clipping java implementation source code?

Hi everyone. My question is, is there any Bezier Clipping java source code available on the Internet? I have seen some java applet used that method, but unfortunately they didn't provide code, and I really in short of time to implement it my own....Thank you so much. ...

Rotate Bitmap (Rectangle) While Maintining Area

How can I rotate an Bitmap a given number of degrees while maintaining the area of the original bitmap. ie, what I rotate a bitmap of Width:100,Height:200, my end result will be a bigger image but the rotated portion will still have an area of 100*200 ...

Why enabling transparency can lead to clipping problems ?

Hi, I'm working on a 3D graphical application in Java using the Java 3D API. I noticed that every time I was dealing with transparency, all I got in return were some clipping problems. Some parts of the scene weren't displayed properly. It might seem obvious that this would happen in a certain way but I'm looking for a logical explanati...

RectangleGeometry with relative dimensions... how?

I'm trying to replicate the nowadays so fashionable "reflex" effect on a controltemplate for buttons I'm creating. The basic idea is to create a rectangle with a gradient fill from white to transparent and then clip some of that semi-transparent rectangle with a rectanglegeometry. The problem is that I don't know how to define a relati...

Can you have multiple clipping regions in an HTML Canvas?

I have code that loads a bunch of images into hidden img elements and then a Javascript loop which places each image onto the canvas. However, I want to clip each image so that it is a circle when placed on the canvas. My loop looks like this: $$('#avatars img').each(function(avatar) { var canvas = $('canvas'); var ...

Resize Clipping Path on window resize in WPF

Hello, I was wondering how to resize a Clipping path dynamically when resizing the window. Right now I'm taking a rectangle in Expression Blend that resizes with the window. Applying this rectangle to a circle as a clipping path makes the rectangle fixed, and it won't resize anymore. I've seen different ways of making clipping paths in...

Displaying a rotated string - DataGridView.RowPostPaint

I want to display a lengthy rotated string in the background of one of my rows in a DataGridView. However, this: private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { if (e.RowIndex == 0) { ... //Draw the string Graphics g = dataGridView1.CreateGraphics(); ...

Building a clip area in a UIView from path objects in its subviews

I'm trying to produce a clipping area in a UIView that's generated from path objects in its subviews. For example, I might have one subview containing a square and another containing a circle. I want to be able to produce a clip in the parent superview that's the union of both these shapes. Can someone explain how to do this? About all I...

wpf show video in ecllipse shape

Hi, I want to show a video in an ecllipse shape. How can i do it? Can i use the Clip property on it? how? Thanks. ...

Adding a subview larger than cellHeight to a UITableViewCell?

I'm trying to add a subview to a UITableViewCell and the design that I'm working from demands that this particular subview (an image) needs to be larger than the actual UITableViewCell and thus partly overlap its siblings. So I've set up my table cell, generated my image and added it to the cell's contentView: // rowHeight for the UITa...