image

Image Stretch programatically in WPF.

Hi, In a WPF Application using XAML, I created a stackpanel(width 1030) and I have 2 Images. 1. imgClient width = 784 Height = 66 and 2. imgClientExtra width =1 and Height = 66 imgClientExtra will be right end and imgClient will start at leftend. so, the images will fit to 784 + 1 when the application is not running, the total image ...

How to create a BMP file from raw byte[] in Java

I have a C++ application which communicates with a camera and fetches raw image-data. I then have a Byte[] in C++, which i want to send to Java with JNI. However, i need to convert the raw Byte[] to an real file format(.bmp was my first choice). I can easily do this if i write it from C++ to an file on the hard-drive, using BITMAPFILEI...

Sort images based on content

Hello everyone, I have a bunch of images I would like to sort automatically. These are screenshots from a videogames, so there are parts of the images that never change. Is there a simple/quick way to sort those images, based on rules such as "if there is this bunch of pixels in the right hand corner, put in folder N#1", "if the middle...

Why image with transparent background not visible in Silverlight?

I have created an image to use as a ruler. It has black lines and text on a transparent background and is in PNG format. After adding it to my XAML I was surprised to find that the image was not visible, and even more surprised to find it was visible in Blend when I loaded the XAML file there. What might cause an image to be invisible w...

Fastest Image Resizing in .NET

I need the fastest library to resize full size images (some up to 9MB in size) to multiple sizes. Here's the scenerio: User uploads a photo a FileSystemWatcher is running in a service watching the drop location (on a SAN) When a new photo appears, the service will create 4 versions of the image at full JPEG quality: 100px wide 320px...

WPF- How Can I Show a Cropped Region of an ImageSource in an <Image> Control?

WPF- How can I show a cropped region of an ImageSource in an control? I have an ImageSource of a vairable size in pixels. I have a caculated crop rectangle, indicating how much of the image we are actually going to use. I don't want to edit the image data directly, but I want my <Image> control to display only the cropped region of t...

.NET Compact Framework 3.5 animated transparent wait cursor

I would like to display a "wait cursor" to the user when they have to wait for something to load. The cursor should be an animated series of bitmaps. I can use a UserControl that I can add to a form, but the UserControl is not itself transparent. I took the code sample available here (http://www.microsoft.com/downloads/details.aspx?Fa...

What makes this image display in my WPF usercontrol?

I've been trying to make a simple usercontrol to display an image, and eventually make it act as a button in my WPF application. I had one of these usercontrols written into the form's XAML, and the image always displayed. However, when adding them programmatically to a stackpanel, the control was there but the image never displayed. H...

What is causing the scaleX method of Imager class to fail?

This is a cross post from Perl Monks and Mahalo answers, where I have not received a satisfactory response yet. Thanks for your time and spirit: Why do I get this error message from perl: Can't call method "scaleY" on an undefined value at C:/strawberry/perl +/site/lib/ Image/Seek.pm line 137? I am getting the error in the title wh...

Tiling a asynchronously loaded image - stuck between an <img> and a background URL

For a site with a lot of small thumbnail images, I wanted to use a placeholder gif while each image was loading. This requires code like the following: $('.this_img').each(function(){ var $this_img = $(this); var $this_src = $(this).find('.sliderImage:first').attr('src'); var img = new Image(); // wrap our new image in jQuery...

ffmpeg image creation

hi im using ffmpeg in my server and every thing is working fine except one that the image(thumbnail) creation im using this script /usr/bin/ffmpeg -i /var/www/test/test.flv -deinterlace -an -ss 13.45 -t 00:00:05 -r 0.01 -y -s 120x72 -vcodec mjpeg -f mjpeg /var/www/test/test.jpg is there any problem...

How to set img tag vertical center : html + css

I'm coding it <div> <a href="http://example1.com"&gt; <img src="example1.gif" /> </a> </div> <div> <a href="http://example2.com"&gt; <img src="example2.gif" /> </a> </div> a { text-align:center; height :80px; display:block; } The centering of the horizontal direction do well. but vertical is not. How to do it? By the...

Speed up loading an image from disk in a windows forms (c#.net) app

Hi, I'm currently working on an app that allows the user to play (automatically scroll) through a series of local images. Usually there will be five or six on screen at once. The major bottleneck at the moment seems to be the actual loading of the image data from disk. A timer thread calls for the images to be updated every 1/6 of a se...

Convert System.Windows.Media.ImageSource to System.Drawing.Bitmap

Title says it all. How can I convert a System.Windows.Media.ImageSource to System.Drawing.Bitmap? ...

Best way to secure a silverlight image viewer in a web application?

I have a web application that is secured and stores user detail information in a session object. I am building a Silverlight control to view images that are stored in the database and access to those images needs to be secured. I am not trying to prevent copying or anything like that but I need to make sure that the user accessing the ...

Image viewer performance issues in WPF

Hi all. I'm having issues with a image displayer in WPF. I've a ListView displaying ImageSources. <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <WrapPanel /> </ItemsPanelTemplate> </Setter.Value> </Setter> ...

identify image file format

Given image file with no extension, how can I read the image file and identify the file format in C++? ...

JTIP file format reader for python

I have to work with some image files. They are named as .png and .jpg, but I tried 3 different image viewers, and none of them could open the files. I found out that the first 8 bytes of these files were CF10rUrm, and DROID told me it was a JTIP (JPEG Tiled Image Pyramid). I need to use these from Python. Does anybody know of any way to...

How to copy a System.Drawing.Image value?

I am trying to copy an Image value to draw on it and on second draw ignore the last one and start over on top of the preserved Image value. I.e.: Image with 4 rectangle (ImageA) -> draw a circle return to ImageA -> draw a rectangle now there are 5 rectangles I don't know if it's the optimal way to draw too? ...

How do I add background text or image to BIRT report ?

I have to add text or background image as "DRAFT" for report when it match certain condition.I have to dynamically enable or display birt report back ground text ? I am looking forward to hear any ideas. Thanks In Advance. Thillakan. ...