image

iphone: masking an image using paths

How do you mask an image using paths? What Im trying to do is draw a line using CGContextStrokePath and show only those parts of a CGLayerRef which are under it. Also, how do you erase only those parts of the CGLayerRef which are under it? Thanks. ...

Flex: Duplicating instance of an image

I have a drag and drop handler in my Flex application. The drag proxy, or the 'ghost' image to be displayed while dragging, must be loaded before I drag, and that takes some time. How can I make it load immediately or preload? One solution is to duplicate the image, but as far as I know, image objects can't be duplicated without creating...

How can I serve an image with a Perl CGI script?

My google fu in failing me. How do I use Perl to serve up an already generated image? Example: <http><body><img src="getimage.pl"></body></html> What goes in getimage.pl? ...

Im creating a program that generates a palette from a true color image, need help with some file formats

Im creating a program that generates a palette from a true color image, I need some help with some file formats It already creates a photoshop cs3 palette i haven't found any info on how to make a Paintshop pro 8 palette or a gimp palette plus i would be happy to look up any other art program palette types to improve compatibility wit...

image subdirectory in c++

Basically, I was hoping to sort of keep my files sorted instead of having them all in the same folder as my executable, but referencing files in sub folders relative to my executable has proven difficult. // DEFINES #define IMAGE_BACKGROUND "\\content\\images\\background.bmp" #define FONT_MAIN "\\content\\fonts\\sai.ttf" The above cod...

Is it possible to merge the difference images using < canvas >

Hi All, I am working on developing an AJAX based application similar to VNC .. I am able to reproduce keyboard and mouse interaction from the browser to the remote machine. But when it comes to display part .. I am relying on page refresh that rederes latest captured desktop image. I wanted to improve the display aspects by using AJAX...

What is the best way to scale images in Java?

I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can upload images and store them in the file system. I would like to scale those images so that they are of a consistent size for display on the site. What libraries or built in functions will offer the best results? I will consider the following criter...

Alternatives to sending an image in base64 via document literal SOAP

I'm currently modifying a document literal SOAP service for a business app which transfers data about customers backwards and forwards. A new requirement to transfer scanned document images has just been identified. The problem I have is that the proprietary language I use does not support SOAP attachments. The images being transferred...

C#: Bitmap Creation using bytes array

I am trying to dynamically create a Bitmap Image using byte array using following code Bitmap GetImage() { IntPtr ip = Marshal.AllocCoTaskMem(imagesize); //some code to fill ip Image img = new Bitmap( w, h, -stride, PixelFormat.Format24bppRgb...

HowTo put region of Pyglet image into PIL Image?

My app reads frames from video (using pyglet), extracts a 'strip' (i.e. region - full width by 1 to 6 video lines), then pastes each strip (appends it) into an image that can later be written out an *.png file. Problem is Pyglet GL images are stored in graphics memory, so are very limited re size. My current klunky workaround is build u...

How can I load images from a user's photo album on the iPhone?

I'd like to randomly load images from the user's photo album, but I'd prefer not to have to access an image picker (i.e. I'd like to have the images be random background images). Does anyone know if this is possible? (I couldn't find any references other than: UIImageWriteToSavedPhotosAlbum ) Edit: I'm trying to do this within an iPho...

Using WPF on a DLL to create Images Dynamically (instead of GDI+)

I need to generate an image dynamically, and after I read the tutorial here I realize i can use all the controls and layouts from WPF to generate my rendering, and then save it as a JPG. The idea is to use this instead of GDI+, which is quite primitive. The question is, how to I create a regular dll file that would generate programatic...

Read/Write Tiffs in Java

Any ideas for open-source libraries, with Apache or similar license, for reading and writing TIFF files in Java 5 (Preferably with the AWT image-processing libraries, including ImageIO.) I'm aware that Java 6 is supposed to support TIFF. I know about Sun's JAI implementation, but that license doesn't work for the company I work at;...

Problem when replacing images with same names in folders!

A.) When i use code to delete lets say Image123.jpg in folder Pics and i upload another image and rename that image also Image123.jpg and place it into folder Pics for some reason the new image get's displayed but its using the dimensions of the Image i delete. Using a Repeater over here to display the image................. B.) When i ...

RAW Data from embedded resource image

I am trying to retrieve an image from an Embedded resource, and displaying it in its RAW DATA format (ie-> junk text data). Basically, I am running into a wall with everything I attempt. Can someone show me how to do this properly? Thanks. ...

Reducing flicker when you change images in a panel

How do i reduce flicker in a vb2005 panel? Inside the parent panel i have 2 other panels that im am using. The outer most panel contains a background sprite and the two innermost panels are overlays that change to fit the places in the background sprite. When i change the overlay sprites i would like to reduce the flicker and make it a...

Determine the differences between two nearly identical photographs

This is a fairly broad question; what tools/libraries exist to take two photographs that are not identical, but extremely similar, and identify the specific differences between them? An example would be to take a picture of my couch on Friday after my girlfriend is done cleaning and before a long weekend of having friends over, drinking...

How can i load a picture with jquery?

Hi, i am currently working on a class that generates diagramm's as pictures with php. I want to load these pictures dynamically with jquery. How can i do that?? I wont have a real picture file, just the content of the file when i call it with ajax... And i cant simply define the phpscript as the src because i need to pass Post Parameter...

Problem adding image overlay (jQuery)

What I want to do is find all images with a particular class name, and place an overlay image over them. My script thus far in jQuery 1.2.6: jQuery.noConflict(); jQuery(document).ready( function($) { var module = $(".module-contactus div div div"); module.find("img.let").each( function() { var iWidth = $(this).width(); var i...

How can I store lots of images in a single file for a WinForms app?

I have a .net WinForms 2.0 application that has an image library of about 3000 images currently. Currently I'm using SQLite and storing all of the images as BLOBs with a unique Ids that makes things easy to retrieve. The benefit to this is that the end users don't have to worry about the installer unzipping a massive blob of images on ...