0
голосов
2ответов
2229 просмотров

iphone sdk: Creating an image of the contents of the screen?

I'm looking for a way to write the contents of the screen to an image. Any idea how to achieve that? Does it involve using Quartz? Thanks

3
голосов
6ответов
3541 просмотров

How to design an efficient image buffer in C++?

I am trying to create a data buffer, more specifically, an image buffer, which will be shared among multiple modules. Those modules only reads from the buffer and don't communicate with each other at all. My difficulty is: 1.Large data size: larger than 10M per image, that means copying those da...

10
голосов
6ответов
24489 просмотров

Why is my transformable Core Data attribute not using my custom NSValueTransformer?

I have a Core Data app with a fairly simple data model. I want to be able to store instances of NSImage in the persistent store as PNG Bitmap NSData objects, to save space. To this end, I wrote a simple NSValueTransformer to convert an NSImage to NSData in PNG bitmap format. I am registering the...

2
голосов
2ответов
4143 просмотров

EmailMultiAlternatives adding a 3D when sending mail with image in django

I'm using the EmailMultiAlternatives class to send text and html mails with django. While testing with some dummy code, I wanted to add an image with some text. msg = EmailMultiAlternatives('My subject','some text here', '[email protected]', ['[email protected]_domain.com']) msg.attach_alternative('<p>h...

0
голосов
2ответов
715 просмотров

broken img tag with JEditorPane / ListCellRenderer

I have this code in a ListCellRenderer which extends JEditorPane. The editor pane doesn't show the image, but instead shows a 'broken icon'. What's wrong with it? public class TweetCellRenderer extends JEditorPane implements ListCellRenderer { public Component getListCellRendererComponent( ...

1
голосов
2ответов
74 просмотров

Can I create an inheritance-based filesystem in my webapp?

I have an app that contains different "skins", and most of these skins share the same images. For each skin, we have been creating a copy of the image directory, just in case one of the files is different. Is there something like object oriented inheritance for an IIS directory? Meaning if a fil...

2
голосов
1ответов
2871 просмотров

Resizing Image from a decoded ByteArray

I am trying to display a bytearray as a resized image. The Image is displaying correctly, but the sizing is off. Let me explain. First I have the image data encoded so I need to decode the image data // Instantiate decoder var decoder:Base64Decoder = new Base64Decoder(); // Decode image data de...

0
голосов
1ответов
102 просмотров

Preserving extent from the old image

I am using PIL 1.1.6, Python 2.5 on the Windows platform. In my program, I am performing a point operation (changing the pixel values) and then saving the new image. When I am loading the new and old image, they are not in the same extent. How to impose the extent of old image to the new image?...

2
голосов
3ответов
1894 просмотров

generate "thumbnail" in html while keeping proportions

Is it possible to downsize an image in html while keeping proportions? I know I can use height and width attribute of img tag, but I don't know the image size. Please don't tell me to find out the image size on the server, or that the right way to do this is to generate thumbnails on the server...

27
голосов
5ответов
32692 просмотров

Generate a pdf thumbnail (open source/free)

Looking at other posts for this could not find an adequate solution that for my needs. Trying to just get the first page of a pdf document as a thumbnail. This is to be run as a server application so would not want to write out a pdf document to file to then call a third application that reads th...

0
голосов
1ответов
1620 просмотров

AS3 Flex dynamically loading images does not allow images' id

I need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID. <comps:ExercisesScroller id="scroller" x="300" y="100...

0
голосов
2ответов
446 просмотров

Resizing HTML images breaks ratio

The image of the card on my site (bottom right) displays differently in Chrome and Firefox. In Chrome, its ratio is preserved, but the ratio is twisted in Firefox. How can I apply a constant resize of the image itself, cross-browsers (basically do what now happens for Chrome)

1
голосов
2ответов
207 просмотров

Storing an image from a link in PHP

given a direct link to an image, how do I store the actual image on a folder I have created on my server, using php? Thanks

5
голосов
2ответов
6676 просмотров

Jquery photo comparison

There's a jQuery plugin out there that puts a dragable bar that lets you pull it to the left or right to show one image or another. You can keep it in the middle to see half of each photo. It's not a "slider". It's great for showing how something has been altered or photoshoped. Is anyone aware o...

1
голосов
3ответов
10356 просмотров

How do I blur an image?

I'm trying to implement a blurring mechanic on a java game. How do I create a blur effect on runtime?

4
голосов
7ответов
18737 просмотров

how to add image-border around an image?

Is there any simple way to add a image border around an image? Reason is I want to create a drop-shadow effect around the image. The images are loaded as thumbnails and are 110x75 px... Im thinking about creating a shadow border, but dont know how to add this to around the image, anybody know a...

31
голосов
2ответов
15132 просмотров

Fallback image and timeout - External Content. Javascript

What is the best way to set up a local fallback image if the external image does not load or takes too long to load.

1
голосов
2ответов
3670 просмотров

show image from my web server to my iPhone application

i have soome image (.jpg,.png etc) stored in my web server. i am building an iPhone application which can upload or download images from/to my webserver. i can upload images to my web server. but i can not download images from my web server to my application. How i can do it????

4
голосов
4ответов
1576 просмотров

How does the default Camera iPhone app manages to save a photo so fast?

So far I've managed to create an app for iPhone that takes multiple images with about a 3 second interval between each. I`m processing each image in a separate thread asynchronously and everything is great till it gets to the moment for saving the image on the iPhone disk. Then it takes about 12 ...

0
голосов
2ответов
917 просмотров

List of diagram / image editors for Delphi

I need a good diagram / image editor for a Delphi application. I need the ability to place an image in the editor, and use freely positioned balloons / tips to describe parts of the image. The result must be exported as an image. So far, I have evaluated KSDev Block Engine and TMS Diagram studi...

0
голосов
1ответов
130 просмотров

Digital picture processing on iPhone

I want to write application on iPhone which will: make some digital processing on video from iPhone camera (in real time) send some graphics through TV-Out Could You tell me if this above is possible on iPhone 3G or 3GS? Can I have access to each pixel in video capturing via iPhone camera?

0
голосов
2ответов
3181 просмотров

Java applet - saving an image in a png format

I am creating a simple applet for avatar-making. You can choose face, hair, eyes, etc and then save it to a disc as a png file. The simple version (without the interface for the simplicity purpose) looks like this: import java.awt.*; import java.applet.*; import java.net.*; public class Example...

1
голосов
1ответов
4814 просмотров

How to use OpenReadAsync and WebClient to download data and assign to UserToken?

I need to be able to use WebClient in a partiular way, I need to download an image as a Byte Stream and assign this to an Image, there are multiple images and items to be assigned, and these will appear in a list. This application is a Silverlight 3 application, solution must be one that works in...

71
голосов
7ответов
67840 просмотров

download webpage and dependencies, including css images

Often I need to download a webpage and then edit it offline. I have tried a few tools and the main feature they lack is downloading images referenced in the CSS files. Is there a tool (for Linux) that will download everything so that the webpage will render the same offline (excluding AJAX)?

13
голосов
4ответов
17230 просмотров

Validate that a file is a picture in PHP

If a file is uploaded to the server, is there a way using PHP, to make sure that it's actually a picture and not just a file with a .jpg or .gif extension?

58
голосов
5ответов
113850 просмотров

Byte Array to Image object

I am given a byte[] array in Java which contains the bytes for an image, and I need to output it into an image. How would I go about doing this? Much thanks

0
голосов
3ответов
545 просмотров

Create image Thumbnails before or after upload the best way?

Imagine you have a classifieds website... When searching ads you want image thumbnails of the "real" image which displays in its real size after clicking the ad... Would it be faster to create the thumbnails per search, or create the thumbnails on and then just display them? Storage is not a p...

8
голосов
2ответов
7974 просмотров

Replace SRC of all IMG elements using Parser

I am looking for a way to replace the SRC attribute in all IMG tags not using Regular expressions. (Would like to use any out-of-the box HTML parser included with default Python install) I need to reduce the source from what ever it may be to: <img src="cid:imagename"> I am trying to rep...

1
голосов
3ответов
266 просмотров

How to store an image in a JavaScript variable and render it to the web page?

I am trying to put a small .jpg file inside a JavaScript variable so that it can be rendered to the web page. I do not want to store the path to the image, but the actual image itself. Even though I think this should be possible, I don't exactly know how to go about this. I would like all proces...

-1
голосов
2ответов
262 просмотров

Duplicate Flex Object in HTML without Re-Initializing

I am creating a flash object that does some heavy image lifting. What I am looking to do is load many flash objects onto the same page to take an image, modify it, and display it within the flash object. The problem I am running into is that when I try to add 100 flex objects to the page, the br...