image

Displaying CSS images in div updated by Ajax

I wonder if anyone can help. An HTML div in a page of mine contains a tree control which is shown or hidden depending upon a button pressed by a user. The button triggers an Ajax event which sets a variable on the server to show or hide the tree so that the state is persisted. But here's the problem; when the tree is re-displayed, the i...

regex for url and image within a text or html

i'm running out of ideas on the best regex implementation for this problem. Sample user input: bla bla bla http://foo.com bla bla bla http://tinypic.com/boo.png bla bla bla Looking for solution that will detect non-image url and turn it into a link and also turn image url into an image embed (IMG tag). so the output will be: bla bla...

Object based image editor for Windows

I'm not a designer but I sometimes have to create/edit images for our applications. In the past I've used "Microsoft Image Composer" - I like its user interface because it's object based and easy to use. Unfortunately it was discontinued and the old version I am using has some problems with png files. I've tried to find a good replacem...

C# add a layer to an image

Hi! I would like to add a layer to an image with the logo of the company. The logo should be placed on the center of the image (little opacity). How can I do that? Thanks! ...

WPF - Image 'is not part of the project or its Build Action is not set to Resource'

I have a project which requires an image in the window. This is a static image and i added through 'Add>Existing Item'. It exists in the root of the project. I reference the image in a test page like so - <Page x:Class="Critter.Pages.Test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micro...

image colors in pdf files in vb.net

I'm creating a program to generate PDF files in VB.Net. Everything is working fine except that the image is being displayed with a blue background while the image provided doesn't have any. Following are the lines of code being used: sColor = IIf(mvarEncodeASCII85, ToASCII85(ImgColor), (System.Text.Encoding.GetEncoding(1252).GetSt...

How to write a WCF REST service that image data can be POSTed to?

I've been looking for examples for how to write a WCF REST service that allows image data to be POSTed to. I may be missing something (I generally am), but does anyone know how to do it? Is it as simple as getting the HTTP request from inside your WCF REST service, and extracting the binary data? If so, is there an example as to how to d...

Generate image with some transparent parts

Hello all, Im trying to generate a small square 32 by 32 pixels with a 10 by 10 squareish transparent gap in the middle. This is what I have so far: private Image CreatePicture(){ // Create a new Bitmap object, 32 x 32 pixels in size Bitmap canvas = new Bitmap(32,32,System.Drawing.Imaging.PixelFormat.Format16bppRgb555); for...

Binding images to Image in Silverlight 2

I'm building a Silverlight 2 application and I need to bind some images to Image object declarated in XAML. I'm doing some other binding in the application and it works just fine, I'm having problem with only images! This is it's XAML: <Image Source="{Binding Path=ThumbNail}" Style="{StaticResource ThumbNailPreview}" /> And this is t...

How to convert an image (i.e. pdf) for use in a LaTeX document?

What is the preferred way to convert various images, bitmap and vector, for use in a LaTeX and PDFLaTeX document? There are many ways to do this, some make use of standard inclusions in the various LaTeX packages, others give better results. ...

Problem with ImageTools plugin in Grails

Hi guys, i have a grails project with an Image Domain Class and Controller. I just installed the grails ImageTools 1.0.4 Plugin and i would like to generate thumbnails for images wich will be uploaded. My Image-Domain-Class: class Image { byte[] data //String name byte[] thumbnail static constraints = { //name() data() } } ...

What is a seam (Seam-carving)

I am reading the paper about seam carving for resizing an image. Down on page 3 where they define a seam mathematically, I need help clarifying it. The paper says that a seam is an 8-connected path of pixels. How can it be 8-connected if the pixel cannot be on the same row? Shouldn't it be 3-connected? http://www.seamcarving.com/arik/...

modal image popups

I have seen a few sites that have a thumbnail and when you click it, it enlarges the image in a modal like popup. Can anyone tell me how this is done? Thanks! ...

Image response via POST

Hi, I am getting an image via a post request. How do I show the same on web using javascript. Is it possible to handle binary data using javascript? ...

Converting a PDF to PNG

I'm trying to convert a PDF (at least the cover of one, I'm successfully extracting the first page of the PDF with pdftk) to a PNG. I'm using imagemagick to do the converstion: convert cover.pdf cover.png This works, but unfortunately the cover.png comes through incorrectly rendered (some of the alpha object in the PDF aren't rendered...

asp Image button dotted border

How can I remove the dotted border around an asp: Image button. The dotted border shows when I click on the image button. Thanks ...

Protect pictures, how to?

I am using asp.net and my users need to upload private pictures to my server. This pictures cannot in anyway get spread so I need to protect them in some way. What is the easiest way to protect them from public use so only the authorized user can reach them? Thanks! ...

Session and app pool: an ASP.NET app that stores and displays images

I have a .NET app that allows users to upload images to a directory within the webapp and then view them. The problem is that the session gets lost when I upload or delete an image in the webapp directory. It seems that the app pool is getting recycled when I add images, and not just config or cs files. I have seen this technique used i...

how to compress an image using discrete cosine transformation technique with java code

respected sir, we are the students of andhra university our project is image transport protocol.only 20% of my project is completed, we implemented RSA enc and dec, text comp and decompression but we don't implement image comp and decompression and image to text conversion and text to image conversion and tommarow is last date for submi...

How to efficiently scale and crop images in an ASP.NET app?

We're having problems with an ASP.NET application which allows users to upload, and crop images. The images are all scaled to fixed sizes afterwards. We basically run out of memory when a large file is processed; it seems that the handling of JPEG is rather inefficient -- we're using System.Drawing.BitMap. Do you have any general advice,...