I'm writing a web application that involves a continuous cycle of creating (and removing) a fair number of images on a webpage. Each image is dynamically generated by the server.
var img = document.createElement("img");
img.src = "http://mydomain.com/myImageServer?param=blah";
In certain cases, some of these images outlive their usefu...
I have this PHP script which i'm grabbing images from a directory and displaying them. The directory only has 4 image files in it and yet there are 6 li's. In firebug the images just have the paths 'Images/uploaded/.' and 'Images/uploaded/..'
Are there hidden files that this script is grabbing but not displaying correctly?
<?php
...
How do you approach the use of image sprites in css?
Should I take all the images in my website and combine them to one image sprite? Is it really that beneficial?
How hard is it to maintain those images and change them later on?
...
Hello ,
this is code which i use to make image.
Bitmap bitmap;
bitmap.CreateBitmap(715, 844,1,1, NULL);
CDC memDC;
memDC.CreateCompatibleDC(NULL);
memDC.SelectObject(&bitmap);
CString SS="Sun Goes Down";
memDC.TextOutA(1,2,SS);
CImage image;
image.Attach(bitmap);
image.Save(_T("C:\\test.bmp"), Gdiplus::Image...
I have a WPF question.
I have 2 textboxes and an image control in a WPF Form.
The image control has an image in it.
I want to insert the contents of each of the text boxes and the image in the 3 separate columns in an SQL database.
The text boxes feed into varchar columns while the image itself is loaded into a column with datatype ima...
I have two bmp files:
footer.bmp: 200 x 200
product.bmp: 1000 x 1000
I want to create a new bmp file with 200 x 500:
Append the footer.bmp into the bottom of the new image - position (0, 300)
Resize the product.bmp to 200 x 300 and position into (0, 0)
How do I do this using VB.NET?
Dim oBitmap As New Bitmap(200, 500)
Dim oGraph...
I'm improving the images of my website and have met a dilemma.
I know PNG & GIF are lossless while JPEG is lossy.
But what is the main difference between PNG & GIF? Why should I use one and not the other?
If I don't care about each and every pixel, should I always use JPEG since it's the lightest?
...
Sorry for the crappy title.
I have a repository of product images (approximately 55,000 and growing by about 1000 a year) that changes daily (up to 100 images added, modified and/or deleted every day).
I need three people to have access to making the above changes (so they can read/write to the directories). They will all be using wind...
I am loading a 50x50 Bitmap file and then filling it a single random color at program startup. Then save the result onto the same file and assign it to a PictureBox, but running into file write problems and "A generic error occurred in GDI+", etc.
How to do this properly so that I can continually repeat this, (open bitmap, paint it rand...
Right I seem to be having a issue inserting a image into a database (don't ask why lol)
If tryed a simple
UPDATE player SET Image = load_file('94.jpg') WHERE id =94;
And had the image directly located from where im running the sql commands from
UPDATE player
SET Image = load_file('C:\Users\***\Documents\databases\Scripts\94.jpg')
...
It was working fine on Firefox on local machine but when I uploaded the files online it just stopped animating and showing a static image.
View it here
The Javascript I am using:
<script type="text/javascript">
$(document).ready(function() {
$("ul.gallery li").hover(function() { //On hover...
var thumbOver = $(this).find("img")....
How would I go about saving the data from an "image" column in SQL2005 to a binary file that I can use to update a row in a different database on a different server? I know that once I get the file, I can use OPENROWSET to read it in to the destination server, but I cannot figure out what the SQL is to extract the contents of the image ...
I have a program that loads an image from a file with DirectX using D3DXCreateTextureFromFileEx(...), and I forgot to add the image->Release() function to the end of the program during the first test. I know that not releasing the image is bad, but what exactly happens (and is the damage permanent)?
...
I'm looking for a shape recognition tool for Java. In particular, I'd like to find a Java library that given an image file (in jpeg, bmp, gif or any common image file format) gives me information about the regular shapes (rectangles, lines, ...) found in the picture and their coordinates.
In previous questions on this topic I've seen r...
I have some code that does
MemoryStream ms = new MemoryStream();
...
return Image.FromStream(ms);
It fails in very eclectic ways since the Image object does not hold a ref to the stream, so it can get disposed if the GC kicks in which results in GDI+ errors.
How do I work around this (without saving the stream to disk, or altering ...
Hi friends!
I have two images and those are layered on each other using z-index. I want to increase there height and width by 20 from there current height and width whenever a button is clicked.
I have assigned height and width to one image using a css class and for another image using style property in tag
Friends! I increased the he...
I have this jpeg, that opens fine in picasa, photoshop, web browser etc. but in .Net it just refuses to work.
Image image = Image.FromFile(@"myimage.jpg");
image.Save(@"myimage2.jpg");
// ExternalException - A generic error occurred in GDI+.
Is there any way to recover it in .Net so I can work with it (I need to resize it), witho...
What is the best practice when it comes to image upload using PHP?
How should I handle the chmod settings?
Example;
I have a dir called /image/ where i want to upload all my images.
Should I set this dir to chmod 777 and leave it like that? Or should i change chmod on that folder via PHP each time I need to upload a image. What is bes...
Im pulling the binary data out of my mySql database and want to display it as a image.
I do not want to make a separate page for it to display the image (this would involve a extra call to the databae among other things)
I simply want to be able to do
Pretty much but the $Image variable is in its longblob format and I need to conve...
I'm developing an application in VB.Net (VS2008) which allows the creation of classroom layouts. The layout is a panel and has child panels (seat objects) the seats are then populated using drag and drop and show a preview of the person sitting there.
I would like to export this panel to a printable format such as jpeg, pdf etc.
I have...