image

In OpenGL, how do I make a simple background quad?

Let's say I want to draw a simple quad like this: glBegin(GL_QUADS); glVertex2f(-1.0,-1.0); glVertex2f(1.0,-1.0); glVertex2f(1.0, 1.0); glVertex2f(-1.0, 1.0); glEnd(); Is there a way to draw this such that it appears behind all 3D objects and fills up the whole screen? My camera moves with the mouse, so this quad also has to appear s...

How to print picture in Crystal Reports

How can I print a picture that connects to a field image in a database using Crystal Reports? Thanks for any help. ...

Rotate image math (C#)

I have an image with two points, aligned something like this: |----------------| | | | . | | | | . | | | |----------------| I have both X, Y coordinates for both points and I need to rotate the image X degrees so it looks like this instead: |----------------| | ...

Preloading images with jQuery

I'm looking for a quick and easy way to preload images with JavaScript. I'm using jQuery if that's important. I saw this here (http://nettuts.com...): function complexLoad(config, fileNames) { for (var x = 0; x < fileNames.length; x++) { $("<img>").attr({ id: fileNames[x], src: config.imgDir + fileNames[x] + config.im...

Use netpbm to upscale an image

I have a 72 dpi tiff that I'm trying to upsize to a 300 dpi tiff. I can do it from within image programs such as Gimp or even OS X built in preview. For some reason I can't seem to figure out how to do it in netbpm. I tried the following command line: tifftopnm < sample1.tif | pamditherbw -threshold -value 0.5 | pamscale 4.2 | pamtopnm ...

Android: Strange out of memory issue

I am not sure where to start to explain this one. I have a list view with a couple image buttons on each row. When you click the list row, it launches a new activity. If you review some of my other posts, I have had to build my own tabs because of an issue w/ the camera layout. The activity that gets launched for result is a map. If I c...

Highlighting Areas on Image in ASP.Net

I have a map of a building and I'd like to programmatically highlight specific rooms based upon user input. I'd like to do it from the server side if possible, and eventually, I'd like to be able to highlight multiple rooms. To elaborate more, this feature is for an exhibition. Users will be viewing data about an exhibitor, click th...

Different Images in a gridview

I have a question related to gridviews in ASP.NET I have a gridview that I pull information from a SQL db and it displays the username and current status IE; Username | Status user1 | Logged Out user2 | Logged in user3 | On Leave So this is working all handy dandy, however what I'd like to do is rather that display ...

Upload images to SQL Server 2005 using ASP.Net MVC?

Hi there, I know there is a way to upload images to the database as image type or varbinary type, however, I searched around the entire week, I am unable to find anything that can help me, so this is really my last resort, if anybody know how to upload images to the database, I am using SQL Server 2005 Express. Thanks ...

Use an image name held inside an element - XML/CSS

I am making a CSS file for an XML document. I need to insert an image - the filename of which is contained inside an element. This is part of the xml code I am referring to: <description> <text> Club Praia is divided and linked by a foot bridge over the main street which runs through the heart of Praia Da Rocha.</text> <image...

Programmatically Clip/Cut image using Javascript

Are there any documents/tutorials on how to clip or cut a large image so that the user only sees a small portion of this image? Let's say the source image is 10 frames of animation, stacked end-on-end so that it's really wide. What could I do with Javascript to only display 1 arbitrary frame of animation at a time? I've looked into th...

Resize vs Crop

Let's say you're creating an eBay-like site where users can list items they wish to sell to others and you want to allow them to upload pictures. In order to make the site look as "clean" as possible, you decide that all image thumbnails will render as 100x100 pixel squares on the main page (the full image could be displayed in another ...

How can I validate an image file in Perl?

How would I validate that a jpg file is a valid image file. We are having files written to a directory using FTP, but we seem to be picking up the file before it has finished writing it, creating invalid images. I need to be able to identify when it is no longer being written to. Any ideas? ...

ASP.Net - Multiple dynamic images. Performance issues due to too many Http Requests

Hi, I use an HttpHandler to dynamically serve images in a ASP.Net web application. I am having a performance issue (Firfox/Firebug/YSlow reports there are too many HttpRequests) I have between 50-100 images per page in some instances.. 3 treeviews (business units/categories/objects) with each node having its own image ;) Each item's i...

Memory leak issue with UIImagePickerController

I'm getting memory leak with UIImagePickerController class. Here's how I'm using it: UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentModalViewController:picker animated:YES]; [picker release]; To remo...

Reduce UIImage size to a manageable size (reduce bytes)

I want to reduce the number of bytes of an image captured by the device, since i believe the _imageScaledToSize does not reduce the number of bytes of the picture (or does it?) - i want to store a thumbnail of the image in a local dictionary object and can't afford to put full size images in the dictionary. Any idea? ...

How can I extract images from a PDF file?

Hi! I am able to extract the images from a PDF file using many Perl modules, but none of them specifies the exact positions of the images being extracted (where the image actually belongs). Could anyone suggest to me how to extract the images along with their positions? Thanks in advance. ...

How to output a binary document based on a HTML document using filters in Java

This may be a little confusing but I having some trouble. My goal is to take an input HTML document and then process that document and use the HTML data to output a image document. For example, a user will request a URL, with some action=png in the querystring and then the filter will get invoked for the URL and output image document. ...

Linked Image Border Styles

I want to be able to link my image. Click on it. Go back to the page and see that it was visited. I want my visited images to have a different color border when I go back. My code: a:link img{border-color:#FFF; border-style:solid; border-width:1px;} a:hover img{border-color:#03F; border-style:solid; border-width:1px;} a:visited img, a:...

What's wrong with my javascript? Fading images

Hello, I'm trying to make Javascript change the style of certain DIV IDs by changing their background every few seconds. Basically, a fading header...here's my code, and it just doesn't change the background, at all. How do you call a function? http://pixolia.net/sandbox/morph/index.php ...