I wrote a method to crop images in C#. It does it by creating a new Bitmap and drawing onto it a specified rectangle (the area to be cropped) from the original image.
For the images I've tried with it was generating wrong results. The size of the resulting image was right, but the content was it. It was like if the image has been scaled...
I am working on a photo gallery iPhone app.
Approach is fairly inspired from the ScrollingMadness code available on github.
I have a scroll view which holds all my image views when in paging mode. When user zooms an image using pinch out gesture, I remove all the image views but the current one - and set the content offset to 0,0 (obvi...
we are creating a website for hotel booking. we need to store a large number of images. we think it would be a better option to store images in the filesystem and store the path in the database. But do we have to manually save them? We are using web services from another website to get the images. is there a way to save the images dynami...
I am looking to create an option within a form to choose a theme for the page. The options need to be displayed as images so the user can see what the theme looks like. What is my best way to implement this?
...
I'm using Paperclip with a Ruby on Rails to attach assets to a model, these assets can be any file type and currently thumbnails are only being generated if the asset is an image. I'd like to be able to display a different default image for other files, either by generating a thumbnail of the files on upload, or setting something up wit...
I am trying to create a utility in C# using the MVC framework where a user uploads a picture which is used to crop pieces out of to be used as thumbnail icons (only one user at a time will be doing this at any given time). The user can then upload a different picture and continue cropping.
I have a controller action that handles the fi...
I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed.
Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image.
What ...
I want to place the picked image ontop of another image, so that my picked image wil be placed in some sort of frame i made in photoshop. After combining the images i want to save it to the disk.
Does anyone knows how to do it, or mayby a link to examples?
...
We store documents in an SQL Server 2005 database table with a column format of "Image".
Every time I try to store a PDF file which is greater than 1 Meg, it somehow gets corrupted.
Is there any particularly efficient method in .NET to serialize and store large files (~10megs) into a database?
[Edit]
Microsoft actually says the max f...
Hi all,
i am calling the function given below on dropping a tag on an area.
If that tag drops successfully it should append an image and on double click it should produce a dialog box.This happens for the first time when i drop a tag but does not work when i drop that second time.
function dropFile()
{
$(".File_div")...
On navigating to any view in an app which has navigation controller implemented, it shows a back button to go to the previous view. Is there a way I can use custom image instead of the default one?
...
I'm developing a Django project where I need to serve temporary images, which are generated online. The sessions should be anonymous; anyone should be able to use the service. The images should be destroyed when the session expires or closes.
I don't know, however, what's the best approach. For instance, I could use file-based sessions ...
Hi,
I'm trying to figure out how to insert a .JPG file into a SQL Server 2000 database field of type image using Transact SQL. Thanks.
...
Where can i store picture while paging. Whether it should be stored in folder or db. What to store in the db. entire images or only path. if path only how to get the path for a picture in a directory. Please help me
Exact Duplicate: User Images: Database or filesystem storage?
Exact Duplicate: Storing images in database: Yea or nay?
...
How to fetch the images from a folder and display it in the page, whether i can resize it in php itself or i have to resize it and upload it separtely to display it as thumbnails?
...
How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to send information in the file of photo undetected by anyone (to provide security/privacy to some extent)!
...
I am rotating my image with the following code:
CGAffineTransform rotate = CGAffineTransformMakeRotation( [ratio floatValue] );
[imageView setTransform:rotate];
But it doesn't have sharp edges, does someone knows a solution for this?
Here's the link to the image i get:
link
...
Hi!
I want to add a drop shadow to an image file. What's the best way to do that?
I thought about creating a WPF Image control and adding a bitmap effect.. But how can I save the result to a file?
Thanks, Eric
...
I want to render a webpage into a small thumbnail image in an Adobe Flex application.
Does anyone know of a method to do this?
...
As part of my current project I am required to download images from a related website, given the URL of the image. (No ethics dilemas please people, already checked the legal status and it's fine)
What is the most effective way to do this in C#? I would prefer if the method was synchronous, as asynchronous methods tend to be a little co...