crop

R: crop multiple pngs and combine them into a single plot

霸气de小男生 提交于 2019-12-06 05:52:54
I am plotting data into two plots like this: xy <- structure(list(NAME = structure(c(2L, 2L, 1L, 1L), .Label = c("CISCO", "JOHN"), class = "factor"), ID = c(41L, 41L, 57L, 57L), X_START_YEAR = c(1965L, 1932L, 1998L, 1956L), Y_START_VALUE = c(960L, -45L, 22L, -570L), X_END_YEAR = c(1968L, 1955L, 2002L, 1970L), Y_END_VALUE = c(960L, -45L, 22L, -570L), LC = structure(c(1L, 1L, 2L, 2L), .Label = c("CA", "US"), class = "factor")), .Names = c("NAME", "ID", "X_START_YEAR","Y_START_VALUE", "X_END_YEAR", "Y_END_VALUE", "LC"), class = "data.frame", row.names = c(NA,-4L)) ind <- split(xy,xy$ID) # Plots

GWT client side cropping

末鹿安然 提交于 2019-12-06 05:49:55
I'm stuck on integrating gwt with JCrop or imgareaselect javascript libraries I have an image, which url is changing each time the client change the file choosen from its filesystem (using an upload widget). I want the user select the area in its image, this way i will be able to have images with aspect ratio respected respect to the client wishes. Problem is i can't succed in making imgareaselect or jcrop called on load event, each time i have null, if i try jquery ("imagepreview") jquery is unknow at execution time, if i try some $("#imagepreview") i get a $ is undefined... PLEASE any help..

Upload, resize, and crop center of image with PHP

♀尐吖头ヾ 提交于 2019-12-06 04:49:32
问题 I'm wanting to create a very very basic upload, resize, and crop PHP script. The functionality to this will be identical (last i checked anyway) to the method Twitter uses to upload avatar pictures. I want the script to take any size image, resize the shortest side to 116px, then crop off the top and bottom (or left and right side if it's landscape) as to get a square 116px by 116px. I don't want a bloated PHP script with client side resizing or anything, just a simple PHP resize and crop.

Cropping an image in Java [closed]

我的未来我决定 提交于 2019-12-06 04:40:46
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm trying to cut a certain part of image in Java and save it back to disk. Is there a function that cuts the images from X, Y with the specified width and height? 回答1: You'd typically Create a new BufferedImage ( dst below) with the desired width and height. Get hold of it's

Cropping Picture on Droid X sets resulting image as wallpaper

时光总嘲笑我的痴心妄想 提交于 2019-12-06 04:34:37
问题 I'm running into an issue with my program when trying to crop an image selected by the user from their gallery. The issue so far only appears when running on a Droid X, as running on the original moto Droid works fine. Basically the issue occurs as the cropping intent is being run. Once the user crops the photo and clicks the save button, it replaces the wallpaper on the main screen with the cropped image that was saved! It does not do this on the moto droid, or emulators. Below is the code

Scale image until either X or Y is the same as the container and then crop the rest

烈酒焚心 提交于 2019-12-06 03:19:46
问题 I am loading images in multiple places where the site theme will have them displayed in different sizes. I experimented with the CSS properties and found that I could scale the image using the height and width parameters and crop the image using position:relative and overflow:hidden. What I want to do though is a combination of that. To scale the image down until the width is the width of the container element or the height is the height of the container element (which ever comes first). Then

Crop image in star shape iphone

本秂侑毒 提交于 2019-12-06 02:42:20
I have a image in rectangle shape but i want to crop this image in a star shape in my iphone application. so please can any one suggest how i do this? plz suggest. thanks DarkDust See the comment to a related question on how to mask an image. The magical part is CGContextClipToMask . 来源: https://stackoverflow.com/questions/5701152/crop-image-in-star-shape-iphone

iOS 8 Core Image saving a section of an Image via Swift

落爺英雄遲暮 提交于 2019-12-06 02:10:40
问题 I'm using CoreImage Framework for detecting Business Card. When I detect a rectangle (CIDetectorTypeRectangle) I draw an overlay using this method: func drawOverlay(image: CIImage, topLeft: CGPoint, topRight: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint) -> CIImage { var overlay = CIImage(color: CIColor(red: 0, green: 0, blue: 1.0, alpha: 0.3)) overlay = overlay.imageByCroppingToRect(image.extent()) overlay = overlay.imageByApplyingFilter("CIPerspectiveTransformWithExtent",

Crop an image to square using percentages and max widths

纵饮孤独 提交于 2019-12-06 01:54:34
问题 Working a responsive site, so I cannot use set widths. I need pictures to all crop to square. I cannot define the exact measurements because it also needs to have max-width:100% in order to make it a responsive image which adjusts it's sized relative to the container (which is relative to the width of the browser). I've seen a lot of solutions that suggest using background-image but this not possible, it must be an img tag. It also must work in IE8. Any ideas? I currently have: .views-field

Cropping Shape of Square Image Android In App

两盒软妹~` 提交于 2019-12-06 01:24:57
问题 I want to create an application which allows the user to resize an image in shape of square (length = width). I know that it is possible to use the gallery to make that in this way: private void crop(Uri photoUri) { Intent intent = new Intent("com.android.camera.action.CROP"); intent.setData(photoUri); intent.putExtra("outputX", 200); intent.putExtra("outputY", 200); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("scale", true); intent.putExtra("return-data",