image

.NET Graphics on Windows 7: White corners around images?

I've been working on some custom graphics controls, and I found this weird problem with windows 7 rendering my button controls. I've used Photoshop to delete the pixels in the background all around the button image I'm using, then saved it as a GIF, and imported it into VS to use as the background image of my button. When windows XP re...

Add a border around a fixed-width SVG?

I'm unfamiliar with the SVG spec, so I was wondering if there was an easy way to build a border of a certain width around a fixed-width, rectangular SVG simply by manipulating the DOM. This seems like it should be feasible, but I don't know where to prod to begin. Help? ...

Get Image Width/Height without using a Drawing.Image

I know it sounds weird. I have a photo gallery that saves image info(url, name, date modified...) from the hard disk into an in memory collection. The thing is i want to have the image width/height stored into that collection. I can get it for each file using the Drawing.Image class. But considering the gallery can get quite big, creati...

Save JPG in progressive format

<Extension()> _ Public Sub Save(ByVal b As Bitmap, ByVal FileName As String, ByVal Compression As Long, ByVal MimeType As String) Dim Params As EncoderParameters = New EncoderParameters(2) Dim CodecInfo As ImageCodecInfo = GetEncoderInfo(MimeType) Params.Param(0) = New EncoderParameter(Encoder.RenderMethod, EncoderValue.Rend...

Reading characters off of the screen

I've been trying to find a solution to my problem for quite a while. I need to build a program that reads data off of the screen, recognizes characters and images and then acts based on what characters and images are. For example, I provide it with a picture of a dog, a picture of each possible character, and it would be able to read the...

Put PNG over a JPG in PHP

Hello I want to do the following in PHP: I have two images, a jpg and a png. I want to resize the jpg to the same size as the png then put the png on top. The PNG has transparency so I would like to preserve that so the jpg shows underneath. If anyone could help that would be great! Thanks ...

FCKeditor uploads but doesn't show in the folder?!

When i use the file browser to upload the image it shows it's in the correct folder but when I physically check the folder the image isn't there. When I "browse server" it shows the image is still there and I can put the image in the window. any idea why the image isn't actually there? Also, if i try to delete the folder I used to uplo...

Blurred colors using epsfig or graphicx in LaTeX

My code is simple enough, and importing eps images is something I've done before with other matlab-generated content, but for one reason or another I end up with blurred colors in my heatmap when I use epsfig or graphicx to import it into my document. In the picture below, the right is what shows up if I compile to DVI and open up the d...

Displaying thumbnails of images (present at different locations in the sdcard) in a listview

Hi all, I have several images present in different folders in my sdcard. I would like to display a list of thumbnails. So what I have done is while rendering any row in the list I read the file in an input stream, get the byte array, decode it to obtain a bitmap and set it in an imageview. So far so good. But when I scroll the list...

Displaying Images from Client-Machine in HTML

I was unable to display local images in both IE6 and IE7. Below is a page where you can see a demo: http://www.thaiperfect.com/anytest/ Any advice? ...

Setting background image of custom table view cells

Hi, I've tried numerous ways of setting the background image of an unselected table cell, but without success: 1- In IB setting the image field 2- cell.contentView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"list.png"]]; 3- cell.imageView.image = [UIImage imageNamed:@"list_selected.png"]; All seem t...

create a images for dynamic text using php

Hi, I want to create a images for my dynamic text. My problem is that i am reading folder name from some specific directory. So folder name will be what ever but client wants that folder name should come as the images only. So i have thought that i will place one image with the same name as folder on any unique name. but client don't wa...

Reference images stored in external dll using wpf

Hi all, I have a wpf application and a class library(dll) project. In my dll I have an images folder with some .png files set as Resource. I want to reference and display the image using the wpf main application. Any ideas? I want to do this in the xaml not the code behind if at all possible. Ta, Matt. ...

Why is this Perl CGI script failing to upload images correctly?

I have this code: use CGI; use File::Basename; use Image::Magick; use Time::HiRes qw(gettimeofday); my $query = new CGI; my $upload_dir = "../images"; #location on our server my $filename=$query->param("img"); my $timestamp = int (gettimeofday * 1000); my ( $name, $path, $extension ) = fileparse ( $filena...

embedding images,javascriptfiles in custom server control asp.net

hi everybody, I want to make an html editor like ajax editor. I mean to say everything is merged in a single dll(images,javascript,class). How to accomplish this. Plz Help ...

Use a GPL-licensed image

Can i use a GPL-licensed image on my website without making the code to the site GPL? ...

image scroller using yui

Hi Can any one tell me how to implement a yui carousel based image scroller ? Will it also respond to mouse wheel event as well ? ...

Extra padding at bottom of HTML linked image in Chrome, IE6, and Firefox

I am having a problem with a linked image. <TR class="a"> <TD><A href="http://CA_NB_1_1-pr.jpg" rel="lightbox"><IMG src="CA_NB_1_1-th-pr.jpg"><BR><BR></A></TD> <TD class="hdsmlbr"><A href="http://127.0.0.1/odds/aptrqr2/view/1"&gt;35 Savoie Drive, Moncton, New Brunswick, Canada</A></TD> </TR> This image has padding at the bo...

java images with alpha channel without using buffered image

im drawing a bunch of tiles on a Canvas, these tiles are represented by either Images or BufferedImages. i noticed that im getting millisecond draws with Images but what i start using BufferedImages for the tiles the frame time sky rockets to above 20ms. BufferedImage buffered = ImageIO.read(new File(fileName)); Image image = Toolkit.g...

Getting the alt attribute of an image in prototype.

Hi, I'm editing some old sideshow code someone else written a while ago and I was wondering how you get the alt attribute of an image with prototype. Ive got the image tag selected with the code below: $$('#' + this.slides[this.currentSlide].id + ' a img') But for the life of me I don't know how to get the alt text. I've tried... $...