image

on image load dosomething(this) in JQuery

I have an image $("#main") how can I use jquery to dosomething(this) when the image has loaded? ...

Problems with createImage(int width, int height)

I have the following code, which is run every 10ms as part of a game: private void gameRender() { if(dbImage == null) { //createImage() returns null if GraphicsEnvironment.isHeadless() //returns true. (java.awt.GraphicsEnvironment) dbImage = createImage(PWIDTH, PHEIGHT); if(dbImage == null) ...

what 2 & 3 mean in this and how can i change them CvMat* rot = cvCreateMat(2,3,CV_32FC1)

What do 2 & 3 mean in this and how can I change them? CvMat* rot = cvCreateMat(2,3,CV_32FC1) When I change these two values I get an openCV GUI error handler. size of input arguments do not match() in function cvConvertScale.\cxconvert.cpp(1601) I want to understand what that means Update: The code is: #include <cv.h> #include <...

Turn Image into a Button Image: Remove borders

Hello all, I have this link with the following css. <a href="step1.php">Buy Now</a> //css #buy a { background:transparent url(signup_bt.gif) repeat scroll 0 0; color:#FFFFFF; display:block; font-size:14px; font-weight:bold; height:37px; line-height:38px; text-align:center; text-decorati...

Store Image in DataTable

I want to store image into my datatable and while adding colum I want to set its default value, sending you code doing with checkboxes.. public void addCheckBoxesRuntime(){ for (int i = 0; i < InformationOne.Length; i++) { dt = new DataColumn(InformationOne[i][1] + " (" + InformationOne[i][0] + " ...

Axapta: How to load an image from a file on disk into a grid with a Window Control.

I have been trying: to load an image into a window control with a datamethod that loads the file into a bitmap, returning a bitmap. This makes Axapta Crash. When doing the same but returning an image does not do anything. using the "active" method on the data source has some success if I set the "imagename" to the filename and the auto...

Image file download problem

Hello I am facing problem in downloading any image file from the server. I am able to upload them successfully and can open them from the location where they are uploaded and stored. When i download using my function the image files get downloaded fully, file size is also correct but when i open them i get an error No image preview !...

Can I get IPTC and EXIF data from an image using imageMagick?

I have tried: identify -format %[exif:*] filename.jpg Which returns nothing. identify -verbose filename.jpg Doesn't give me the data I want. I am currently running: Version: ImageMagick 6.0.7 07/25/08 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC Should I be able to get this data with ...

Convert 1-bit image to 8-bits

How can I convert a 1 bit image to an 8 bit image using C#? What color matrix should be used? Can you please provide samples or links? ...

What is needed to add an paperprint-like effect to photos in python?

I want to transform photos in python to look like this: taken from doctype.com I will use it in django, PIL is installed. How can I achieve this? ...

How to encode media in base64 given URL in Ruby

I'm trying to upload an image to PingFM. Their documentation says: media – base64 encoded media data. I can access this image via the URL. I tried (practically guessed) this: ActiveSupport::Base64.encode64(open("http://image.com/img.jpg")) But I get this error: TypeError: can't convert Tempfile into String from /usr/lib/ruby/...

Read WMF file from db, convert to bitmapped image

I have realized that my first question won't be answerable, since php can't deal with this format: http://stackoverflow.com/questions/1376103/how-to-convert-metafilepict-to-bitmapped-image-in-php, so I have a C# console application that will just load up the images, from either an MS SQL 2008 db, or Access 2007, and then save them to a d...

How can I know if a TIFF image is in the format CCITT T.6(Group 4)?

How can I know if a TIFF image is in the format CCITT T.6(Group 4)? ...

SSL and mixed content due to CSS background images

I have a web page containing am entry form. HTTPS is enabled via an Apache redirect for all requests matching that page. Unfortunately, because the CSS pulls in external images using 'background-image: url(/images/...)', the browser will generate a warning message that the page contains mixed content. What's the best way to resolve thi...

Shell script (mac): How to download files from a directory using wget and regular expression?

I'm trying to download images (.jpg) from web folder using wget. I want to download only images, which have a certain sentences in file name. This works fine wget -r -nd -A .jpg http://www.examplewebsite.com/folder/ but I like to include a sentence eg. "john". I tried wget -r -nd -A .jpg '*john*' http://www.examplewebsite.com/folde...

Debugging image rendering in Visual C++, any helpful add-ins?

I often write code that renders images by writing pixels directly into buffers and I often find it hard to get a good overview of what's really going on. The Memory window in Visual Studio's debugger is somewhat a help, but I'd really love to see the images graphically. So my question is, does anyone know of a debugging extension that c...

Images and Panels

I'm having a problem adding a JPanel on top of an Image. This is what I'm trying to do: Image bgImage = loadImage(filename); JPanel jp = new JPanel(); jp.setBounds(100,100,100,100); jp.setOpaque(true); jp.setBackgroudColor(Color.red); bgImage.add(jp); After doing this, I only see the bgImage. I tried everything but I still can't sho...

Can css images load even if they're not applied on a page?

After analyzing my site with the websiteoptimization.com tool, I see that it lists every single css background image, even if they're not applied to any element on the specific page. Is this a bug on their end, or will some browsers load every css image, even if the element they're applied to isn't on the page? ...

randomly change div background image on page load

Hi I have a DIV background which I want to change randomly on page load from a selection of 3 PNGs. I searched around and found this code: $(document).ready(function() { var randomImages = ['img-restaurante-1','img-restaurante-2','img-restaurante-3']; var rndNum = Math.floor(Math.random() * randomImages.length); $("div.lacarta")...

VBScript - image to binary

Hi to all, i'm not a VB programmer but i need a vbscript that convert image file (from local disk) to be converted to binary data and the passed to webservice. I realize how to pass data to webservice but i can't find how to convert the image file to binary data. I spend a lot of time to find some kind of solution but with no luck. Can ...