Questions tagged [clip]

Clipping is restricting the surface on which a drawing is made

Clipping is restricting the surface on which a drawing is made Clipping can also include gaps in a surface. Clips can be rectangle, ellipse, or any other kind of geometry depending on the support of the graphical engine

732 questions
12
votes
1 answer

NSView equivalent of UIView Clip Subviews?

Is there a way to disable clipping of subviews of NSView? In UIView there is a “clip subviews checkbox” and the backing clipToBounds property, but I cant find anything similar in Cocoa. Here is my scenario: I have this grey dot that you can drag…
user961889
  • 351
  • 2
  • 12
11
votes
1 answer

How do I use rasterio/python to mask a raster using a shapefile, to set the raster pixels inside the polygons to zero?

I am trying to create a land mask to apply to satellite imagery, that will set the pixels in a raster intersecting with a land mass to 0. After experimenting with gdal, skimage, pyplot etc. I've found the method given in the rasterio cookbook to be…
Cate
  • 431
  • 1
  • 7
  • 22
10
votes
3 answers

"Clipping" Background to See Below Itself in Stacking Context

[ Note: Looking for a cross-browser solution that does not flash the body's background momentarily between each wave of goo as seen in ccprog's answer; Ideally, the solution should not involve waiting until the end of the first wave to begin…
oldboy
  • 5,729
  • 6
  • 38
  • 86
10
votes
1 answer

Clip BitmapImage using Strokes from a InkCanvas

I'm tasked to create a "Cinemagraph" feature, the user must select a desired area using an InkCanvas to draw the selected pixels that should remain untouched for the rest of the animation/video (or, to select the pixels that should be…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
10
votes
7 answers

Dragging A Child Out Of A Container With Overflow-y:scroll

I have a container with a list inside. The list items can be dragged, moving with the mouse. The container is scrollable with: overflow-y: scroll; By setting this property, Chrome automatically sets the overflow-x property to 'auto'. If I set…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
10
votes
1 answer

HTML 5 canvas clip very costly

I have serious performance problems using canvas clip() with chrome. I have made a test case to illustrate. Even in a simple case like this the red rectangle blinks as if it takes too much time to redraw, and a CPU profiling shows the clip() method…
Stnaire
  • 1,100
  • 1
  • 18
  • 30
9
votes
2 answers

How to clip WorldMap with polygon in R?

I have imported a world map dataset from www.GADM.org using the R package raster. I would like to clip it to a polygon I create to reduce the size of the map. I can retrieve the data and I can create the polygon no problem, but when I use the…
Keith W. Larson
  • 1,543
  • 2
  • 19
  • 34
9
votes
5 answers

How to distort an image to any quadrangle?

Do any of you have an idea, how to distort an image in any quadrangle? I want to implement an image, which you can pull any corner in any direction, distorting the image. Anyone has an idea how to do that? I use and write stuff in android for a…
Geki
  • 247
  • 2
  • 11
9
votes
1 answer

Overscroll scrolling indicators with clip to padding

Im having this problem I cant get rid of on froyo and gingerbread. I am using clipToPadding="false" attribute to not have the top and bottom padding around listView unless its ends. However on 2.2 and 2.3 this with the clipToPadding, causes the…
urSus
  • 12,492
  • 12
  • 69
  • 89
8
votes
1 answer

html canvas: clipping and text

I'm working on a paint app using canvas, and i want to let the user the option to draw only in a selected area. for that I can use the clip() method. but if I want the user to be able to draw inside letters also - is there any way to use clip() for…
Amit Hagin
  • 3,136
  • 6
  • 26
  • 36
8
votes
2 answers

How to clip the BackdropFilter with smooth edges?

I wanted to apply a BackdropFilter over an image in Flutter. So, I used the following way to apply the filter as given in the Flutter docs. import 'dart:ui'; import 'package:flutter/material.dart'; void main() { runApp( MaterialApp( …
Aditya
  • 172
  • 4
  • 11
8
votes
2 answers

Spritesheet in Silverlight

Does anyone have an example of using a spritesheet in Silverlight? I'd like to clip the image and, when a button is pressed, jump to the next frame. (If the user keeps tapping the button, it'll look like an animation). I've looked around but haven't…
Skoder
  • 3,983
  • 11
  • 46
  • 73
8
votes
1 answer

Altering height and width of path in flutter

I'm using path_drawing package to get a path from an SVG in Flutter. After extracting path from SVG Data, it returns it to ClipPath widget which uses that path to clip the Container. After that, I increase the width and height of the Container which…
8
votes
2 answers

How to create a custom blured shape with rounded corners in Flutter

I want to draw a custom shape similar to the marked area of below image. Is there a way to clip this custom shape with blur effect and then specify the radius for the corners?
Rafiqul Hasan
  • 3,324
  • 4
  • 20
  • 28
8
votes
3 answers

Clipping a border in WPF

I need to create a round ProgressBar template. ControlTemplate :
eran otzap
  • 12,293
  • 20
  • 84
  • 139
1
2
3
48 49