image

Round corners on images using Java and JAI

We're using JAI (https://jai-imageio.dev.java.net/) to scale and crop images in Java. We would like to create round corners on our images. How do we do that? The images are JPG and PNG. I would think it's easier to do this with JPGs? The image is a PlanarImage from JAI PlanarImage src = JAI.create(...,...); which can be transformed...

Using LINQ to SQL to populate image

Good afternoon all, a little puzzler for you. I have a sql table that contains an AccountId and an AccountLogoFilePath (the images are stored in a folder rather than in the table itself). How would I go about using LINQ to SQL in populating an image using this file path method (in c#) I've done something similar in SSRS so I am asusmi...

Resizing images on iPhone for UITableView image

I'm using a sectioned TableView, and I want to show an image on the left side of the cell. If I pick one from the photo library (out of the example photos in simulator) and set it as UITableViewCell.imageView.image, it takes up the whole screen. How can I resize the image so that it fits exactly into the cell's image view? Thanks, Y...

Incorrect PNG Colouring (Swapped channels?)

Please can someone take a look at the following image: http://img109.imageshack.us/img109/6885/colouring.png I need to make the bottom image the same as the first. It appears the colour channels are wrong, but I'm not sure and can't correct it. Please can someone tell me how to go from the bottom image to the top image? Thanks. EDIT:...

Best way to fade in/out image

What is the best (least resource heavy) way to fade an image in and out every 20 seconds with a duration of 1 second, against a black background (screensaver), in C# ? (an image about 350x130px). I need this for a simple screensaver that's going to run on some low level computers (xp). Right now I'm using this method against a picture...

Linux based MS Office thumbnail generation

I've been taken on board to work on a PHP based web application. One part of the application generates thumbnail images for MS Office documents on demand, and it uses MS Office + the VeryPDF docprint utility to do this. Because of this one requirement, the system is running on Windows Server 2003 + IIS. I would prefer to have the syst...

Image Resizing Question (PHP/GD)

I'm looking for help/suggestions in finding the most efficient way to resize an image to be as small as possible using PHP/GD while preserving the aspect ratio of the original image but ensuring the the resized image is bigger than a defined minimum width & height. For example, the resized image must have a width >= 400 and a height >= ...

Image Picker Issue

Hello, We have an issue with the Image Picker in our App. When the camera is launched to take an image, our app restarts and shows the main screen. Can somebody throw some light on this issue? Thanks in Advance. ...

How to retrieve uploaded image and save to a file with JSP?

Sorry but I'm totally new to jsp. How to retrieve uploaded image and save to a file with jsp? ...

Retrieving images using a file path stored in a sql database

Morning all. Newbie Mr Dean requiring some simple advice. I have a table in my SQL database that stores an AccountID and an ImageID - the ImageID being a filepath to an actual account image in *gif format. What would I need to to do retrieve the file path and then project this fiel path as the actual image onto an image control? I am...

How to middle vertical align a radio button against an image in html?

I have multiple image of 100x100. I ask the user to choose one of them by putting an radio button before each of them. This is the code : <div> <input type="radio" name="pic" value="1"/><img src="pic01.jpg"/><br/> <input type="radio" name="pic" value="2"/><img src="pic02.jpg"/><br/> .... and so on... But the problem is that ...

All images on sheet disappear when I call getDrawingPatriarch...

Hi, everybody! I have an excel template with images... When I simply populate it with data everything works fine. But I need programmaticly to add comments to cells sometimes, and the only way I found is to use HSSFPatriarch. But when I call HSSFSheet.getDrawingPatriarch() all images on sheet disappear... So the question is: 1. Is there...

Retrieving image from sql table using a file path, code error

Hello folks, me again. A nice chap called Darin kindly provided me with some code in order for me to retrieve an image by its file path. However, when I attempt to execute the code, I receive a "NullReferenceException was unhandled by user code; Use the 'new' keyword to create an object instance" on the first var line. The code can be...

Perceptual quality measures for images

Hi, I'm currently working on algorithm for denoising images. I need to compare my algorithm with other, existing algorithms, but to do so I need a good quality measure. The main goal for such measure is to be close to human perception skills. I know, that it is almost impossible, but there are good perceptual measures for audio signals....

Adding external images to PDF using iText

I'm having trouble figuring out how to add an external image (referenced by a URL) to a PDF using iText. Is this kind of thing possible? The PDF spec in 7.1.5 says you should be able to reference a PDF via a URL by using a URL specification. This is what I've got so far: PdfFileSpecification pdfSpec = PdfFileSpecification.url(writ...

Retrieving images using a file path stored in a sql database (nearly there!)

Ok, I think I am close to making a break through on this. I have the following code that should, theoretically, populate an image using the file path through a sql database public void Image1_Load(object sender, EventArgs e) { ////Code to retrieve logo image from tblMemberLogo - Currently does not work!!! var connectionstring...

Print CMYK image

I have CMYK image in TIFF format and would like to print it in my Windows Forms application. But, when I looked at the color of the print, it didn't look right. So, my guess is that the data sent to the printer was treated as RGB rather than CMYK (When I printed the CMYK image in Photoshop, it printed the correct color). So, my question ...

A way to generate a signature or a hash of an image in ASP.NET for duplicate detection?

Hey guys, I run a rather large site where my members add thousands of images every day. Obviously there is a lot of duplication and i was just wondering if during an upload of an image i can somehow generate a signature or a hash of an image so i can store it. And every time someone uploads the picture i would simply run a check if this ...

iphone: cross platform references and referencing external framework resources

hi there working on an iphone app and separate framework. the separate framework is for an API that i'm building for use in multiple future apps. this api now needs to reference resources (images). what i would like to do is keep the resources WITH the API framework as local set of resources. i followed the instructions from http:/...

RDLC + ReportViewer Control - how to display images from the database?

I am storing GIF images (I can switch to BMP if necessary) in a varbinary column in SQL 2008. I want to display these images in a PDF rendered by the ReportViewer control from my RDLC. How do I have to reference the image data in the report to make that work? =First(Fields!sh_lot_num_barcode_image.Value, "DataSet1")) A simple field r...