Questions tagged [clipping]

Any procedure which identifies that portion of a picture which is either inside or outside a region is referred to as a clipping algorithm or clipping. The region against which an object is to be clipped is called clipping window.

Any procedure which identifies that portion of a picture which is either inside or outside a region is referred to as a clipping algorithm or clipping. The region against which an object is to be clipped is called clipping window.

Examples

In 2D graphics for example, if the user of an image editing program is modifying an image and has "zoomed in" the view to display only the top half of the image, there is no need for the program to spend any CPU time doing any of the calculations or memory moves needed to display the bottom half. By clipping the bottom half of the image and avoiding these calculations, the program runs faster.

In 3D graphics, in a city street scene the computer may have model, texture, and shader data in memory for every building in the city; but since the camera viewing the scene only sees things within, say, a 90° angle, or field of view, the computer does not need to transform, texture, and shade the buildings that are behind the camera, nor those which are far enough to the side that they are off the screen. The clipping algorithm lets the rendering code skip all consideration of those buildings, and the program runs faster

(From wikipedia)

665 questions
-1
votes
1 answer

Photoshop - Using an action/script to scale down and dump images in a separate folder

My Java program is failing to correctly scale down the clipping paths on images. I'm wondering if it's possible to create a script or action for Photoshop that keeps the original but scales down the image (to a set height and width) and dumps them…
Millsie
  • 1
  • 2
-2
votes
1 answer

Android clip to background

I have the following drawable squared_card_background.xml which I wish to apply as background for different views and let the view children as well as the view itself to be clipped after. squared_card_background_left.xml
SlyOtis
  • 577
  • 1
  • 5
  • 20
-2
votes
1 answer

GC friendly convex clipping (union and difference) algorithm

I'm looking for algorithm that will cut my convex polygon based on another convex polygon. It is gonna be for destructible terrain (diff) and for creating terrain (union) in 2D map in game. Algorithm has to be Garbage Collector friendly and the only…
ElSajko
  • 1,612
  • 3
  • 17
  • 37
-3
votes
1 answer

drawRect in a subclass view without another implementation

I want my drawRect function, -(void)drawRect{ NSBezierPath * path = [NSBezierPath bezierPath]; [path setLineWidth:4]; NSPoint center = {ycord,xcord}; [path moveToPoint: center]; [path appendBezierPathWithArcWithCenter:center …
evdude100
  • 437
  • 4
  • 18
-11
votes
1 answer

CSS: Curved inverted clipping

I'm trying to clip an image like the curve here: I'm breaking my head over this, very much appreciated if someone could help me on the way. I'm pretty sure this can be done with css but if not, I'll probably end up using an svg image
joostdelange
  • 113
  • 11
1 2 3
44
45