image

WPF Path vs Image png jpg..

Consider a Button composed of many graphical elements (and Path) drawn on Canvas. Why is it better to use the Path and other elements to build an image in that Button than assigning a custom Bitmap to it? I know one advantage, "the path is a vector image". But if I'm not planning to zoom, why should I use it in place of my custom .png,...

Read subsection of Bitmap from disk in C#

Hello, I'm writing some map software for my smartphone and have hit a problem whereby I don't want to load all of the (large) image files into memory when only a portion will be displayed. Is there a way to read only a subsection (the viewable portion) of a big image given that you know the x and y offsets and width? I know it's probab...

Silverlight Image in Listbox

I have a listbox with a data template. The problem is that it expects the source to be a string. The string I have is a uri of an image inside the xap file. So it would be uri( xxx, uri.relative) How do I get it to look inside the xap file for the image since I can only use a string value? ListBox.ItemTemplate DataTemplate StackPanel Or...

Images appear in simulator but not when uploading to ipod touch (3.0)

I created a simple test app with an image (as well as a button with an image) and it runs fine in the simulator. But when uploading to the iPod, none of the images appear. The button appears but with no image. A few things worth mentioning: - Today's massive achievement was making it beyond the code signing errors and so I have not ...

Image shrink in Expression blend

Hi, I am designing a picture in Expression Blend. I need some help with the sizing of the images. If I don't specify any size, it will render the image at full size, but I want it to be restricted by height and width. If the window resizes, the images should resize. ...

How to add image in UIActivityIndicatorView

Hi, i want to add image into initWithActivityIndicatorStyle instead of using the others like UIActivityIndicatorViewStyleWhiteLarge. So, when come to loading page, the image will act as image loading. Any help, i am truly appreciate it . ^^ Thanks ...

Implementing the IExtractImage COM interface

I see a lot of references to IExtractImage when researching how to generate thumbnails in explorer, and I cannot use the new API which is Vista/7 only as the target OS is XP. Almost all the results I've found talk about using IExtractimage to acquire thumbnails, not implementing IExtractImage to create them. I don't want to retrieve thu...

Binding an Image source to TextBox.Text

I am trying to bind the Text of a TextBox named 'txtImage' to an image using the following code with no results: <Image Source="{Binding ElementName=txtImage, Path=Text}" /> What would the right approach be? ...

How to disable scaling on Images loaded in Flash Movie AS3

I have Flash, in which i load some images dynamically. But when I am viewing this flash on a large screen monitor, the flash is auto scaling (I can't disable stage auto scaling). And similarly size of images is also increasing. Here the problem arises, On large screen monitors the images are getting blur. How can I make it good on al...

text overlaying on windows media player?

Hi I am trying to overlay text on video playing in Windows Media Player using C#. Are there APIs in Windows Media Player SDK for doing the overlay? If not, what are the alternate ways of doing it? ...

Auto sizing zoom on an image in .NET

Hello, I'm considering a personal learning project. Using .NET(preferably VB) I want to build a simple desktop app that's only function is to display comics, like CDisplay, but with more advanced navigation. I want to be able zoom in by clicking on certain areas of an image, individual panels for instance, and have the zoom area automa...

regex to strip out image urls?

I need to separate out a bunch of image urls from a document in which the images are associated with names like this: bellpepper = "http://images.com/bellpepper.jpg" cabbage = "http://images.com/cabbage.jpg" lettuce = "http://images.com/lettuce.jpg" pumpkin = "http://images.com/pumpkin.jpg" I assume I can detect the start of a link wi...

Why Windows Live Spaces Fetch Image Through HTTPS?

I happens to find that, when a live space page is loaded, inline images are fetched by https protocol instead of http protocol. This doesn't make sense. The text part of live space is not fetched by https, why images are fetched with https? I bet the https way to fetch image just make the page loaded slower. Is there any special advant...

php checking if the images is jpg

i have problem to check if the picture is jpg if ($_FILES["fname"]["error"] > 0) { **$imgData = " hyperlink /holder.jpg";** } else { $imgData ="hyperlink/".$_FILES["fname"]["name"]; } // only accept jpg images pjpeg is for Internet Explorer.. should be jpeg if (!($_FILES["fname"]["type"] == "image/pjpeg") ) { ...

http image viewable from inside page, but not direct url

I do not believe this is possible, but I figure there are people out there way smarter than me, so why not check .. I would like to have an HTTP image that is viewable from within a page when used w/in an img tag, but NOT visible if the img src link is called directly. Does that make sense? Viewable in page, but not if called directly...

Algorithm to detect photo orientation

I would like to rotate photos automatically, even when EXIF metadata about the image orientation is not available. Are there any good algorithms for detecting the orientation of a photo? The images are photographs from a digital camera. The algorithm doesn't have to work perfectly, but any reduction in the amount of human interaction r...

Google Maps image?

Hi all, Is there any way to capture the image of a Google Map? I can't use the static map because I have my own polylines in the map and I want them in the "screenshot". Basically I want a user to navigate the map, add some polylines, and when he clicks Save I'm saving the lines, coordinates, zoom, but I would also like to have an imag...

How to convert array of bytes into Image in Java SE

Hi, What is the right way to convert raw array of bytes into Image in Java SE. array consist of bytes, where each three bytes represent one pixel, with each byte for corresponding RGB component. Can anybody suggest a code sample? Thanks, Mike ...

Jquery resizing image

I'd like to start a discussion about the image resizing using jQuery. That's my contribution: But I think I'm far away from the solution. What about the cropping? Who can help me? $(document).ready(function() { $('.story-small img').each(function() { var maxWidth = 100; // Max width for the image var maxHeight = 100; // ...

Error while loading JPEG: "A generic error occurred in GDI+."

I have some JPEG files that I can't seem to load into my C# application. They load fine into other applications, like the GIMP. This is the line of code I'm using to load the image: System.Drawing.Image img = System.Drawing.Image.FromFile(@"C:\Image.jpg"); The exception I get is: "A generic error occurred in GDI+.", which really isn't...