image

change image on postback

So, here's the scenario: I have a page in my asp.net c# based website, which displays data dynamically after taking the request from query strings. For example: Brand=HTC&model=Wildfire Now, in this page I want to display all the deals available in each network separately. So, on the first pageload, I retrieve the data from the tables ...

Storing a Bitmap into a ContentProvider from a BroadcastReciever ...

Hi all. I'm working on an app that, upon instillation of certain apps will send a message to them to register with a content provider. It all works fine, the strings are stored, but I can't get the byte[] blob (a bitmap .png file) to convert properly from within onRecieve() in the broadcastreciever. @Override public void onReceive(Cont...

Pyqt get pixel position and value when mouse click on the image

Hi everybody, I would like to know how i can select a pixel with a mouse click in an image (QImge) and get pixel position and value. Thanks ...

PHP image editing

Read the bottom first, where the most current information is. Most of this is old information (though you might need it). I'm starting on making a PHP function that morphs/deforms an image you give it. I need to make a black background for starting, so this is what I have so far: (not anymore) function morph($img) { list($width,...

AS3 Embedding assets - "Warning: Failed to parse corrupt data"

I've got an AS3 project where I'm trying to compile in several images, a soundtrack, and a video via [Embed] metadata. It's a product requirement that these be embedded, so network transfer is not an option. I'm getting some really strange behavior - a sort of intermittent corruption of the compiled-in data. Sometimes after the proje...

Web browser to WPF image drag and drop

Hi, I have a window set to allow drop and my Drop Event Handler is working fine for images dragged in from Windows Explorer. But dragging in pictures from a web browser has some quirks. In Firefox, I am only getting .bmp files with random names. Images from IE 8 (haven't tested others) only show a Not Allowed mouse cursor. I guess t...

Setting camera image size in Android.

At the moment I am attempting to set my camera on my Motorola Droid phone to take an image that matches the size of my screen (854 x 480 pixels), and I am attempting to accomplish via the parameters for the camera as such: Camera.Parameters parameters = this.mCamera.getParameters(); Log.i(TAG, "CAMERA SIZE: (" + this.mCameraView.getWidt...

Convert ImageOutputStream to byte[]

Have been trying to convert ImageOutputStream to byte[] for a while using JAI. Any inputs are appreciated. Thanks. Sorry here is the code snippet, I am working on. I had to post it earlier. The problem I am facing is that, I am able to get ByteArrayOutputStream from ImageOutputStream. But it always gives me zero bytes. But if I use a Fi...

PHP - How to upload & Save Files with Desired name

i am using this code to upload files(images to a folder) <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFile'><br> <input type='submit' name='upload_btn' value='upload'> </form> <?php $target_Path = "images/"; $target_Path = $target_Path.basename( $_FILES['userFile']['name'] ); move_uploaded_f...

9-patch stretching when it shouldn't stretch, Android

I am trying to set a 9-patch image as the background for one of my activities but it is stretching unescessarily making everything get all wierd. I used draw9patch to create it and added one pixel to the bottom left and one pixel to the top right. I then save it into my drawables directory as intro_bg.9.png. I want to stretch the very...

PHP image dimension

How to get width and height of an image? I have $variable = 'http://site.com/image.png" Want to get width of this image to $width and height to $height. Like: $variable = 'http://site.com/image.png" $width = '300'; // image width is 300px $height = '500'; // height is 500px Thanks. ...

Merge two/more image in Android(widget)

Trying to create a widget with custom fonts, but read that widget doesn't support custom font. I thought that I could create 10 png's for every number(0-10, not going to use abc ect). By using that method I need to create several imageviews... that seems a waste of views. So if I want to have the number 1337 I need 4 ImageViews. Isn'...

Pixel Color Values of image using Javascript

Hi wanted to get the list of pixel color values(RBG) from an image using Javascript so that i can get interesting colors from an image .can anyone help me on this issue please... thanks in advance ...

Which image formats and types should be in testing packet?

I want to create free image pack to help QA testers with testing applications, which use graphics avatars and other support images for main content (like images for user text records and so). Can anybody give links to exsisting testers' image packs? I also need information and articles about image formats. I want to include vector and p...

Problem in Image click event

friend's I have image back and forward image in my footer,by using it i have to navigate to next page,but the problem image click have not changing the function call when click image is to changed. i'm using click events for both here code for backward image img_back setOnClickListener(new OnClickListener(){ void OnClick(view arg1){...

From my system facing problem to upload ablob data type to database

hi all, i have written a java code..using which i can insert images to my oracle data base blob data type and to retrieve from it. it's working perfectly on other systems ..but not working in my system when i want to insert an image having size more than 2kb.but from my system i m able to retrieve images of any size.. the same applicati...

How to tint a transparent PNG image in iPhone?

I know it's possible to tint a rectangular image by drawing a CGContextFillRect over it and setting the blend mode. However, I can't figure out how to do a tint on a transparent image such as an icon. It must be possible since the SDK does it itself on tab-bars in such. Would anyone be able to provide a snippet? ...

how can I set the metadata of an image using WPF?

WPF has an ImageSource which has a BitmapMetadata. However, the Metadata property is read only an the BitmapMetadata is frozen. So I can I modify the metadata of an image? ...

div vs image efficiency

What is a better solution in terms of size (page loading speed etc.): I need to have many (up to a couple hundred) small, colored boxes (about 30x30 pixels or so) shown on a single website. Should I Make each box a div with a colored background? Make each box an image loaded onto the page? There are only a few (less than 6 colors) ...

WPF image CROP Rotate Resize

I have been tasked on a project to provide Crop Rotate and Resize to the user. This is a WPF application and has to be written in VB.net. All the examples I find are in c# and I am not really good at converting it over. Does anyone has any good examples that I can take a look at to add this functionality into the application. Bare wi...