FAQ Database Discussion Community


centre iframe absolute position in html page

html,iframe,positioning,absolute,clipping
I have an iframe which I have clipped at the top, but want to centre on the webpage and zoom on load. I can clip it, but cannot position it, even with a relative div container, so as to maintain the clipped area at the top. JSFiddle <div id="content"> <div...

Polygon Clipping not working when using Sutherland-Hodgman Algorithm

java,algorithm,netbeans,polygon,clipping
I am writing a program that creates a polygon that is shaped like a fish and fills it with green. There are buttons to move the this fish around inside of a window. I want to have only the parts of the fish that are inside of the window to...

Cut polygon algorithm

algorithm,polygon,clipping
i'm trying to solve a problem where a polygon object that cross the min/max Y points have to be splited to parts thus new rectangle/polygon object will be created Here the red marked range is my x1,y1 and x2,y2 points and everything that is inside of it must be removed,...

stroke-linejoin miter for concave SVG shapes

svg,clipping
Struggling to create an SVG with a sharp line join for concave shapes. An example is probably better than words: I'd like the top beziers of the first two (concave) shapes to be sharply joined like the last two (convex) shapes. However, I've been unable to accomplish this. Can anybody...

Converting images to PDF with iTextSharp preserve clipping path

c#,itextsharp,itext,jpeg,clipping
We're looking to convert images in bulk to PDF, programmatically. So far it looks like we will be using iTextSharp but we have an issue with JPG images with clipping path. We are using the following code in our tests: using (FileStream fs = new FileStream(output, FileMode.Create, FileAccess.Write, FileShare.None)) {...

Clipping in a widget's paintEvent

c++,qt,clipping,paintevent
I have a problem with clipping in Qt. I have a widget in which I paint a big array of rectangles. As I only change a few rectangles from time-to-time, I want to paint only a little part of the widget (only these rectangles) and clip the paint area to...