I am writing a small application with Qt 4.6 (64-bit Arch Linux, though that shouldn't matter) which lets the user edit a document using a QWebView with contentEditable turned on. However, for some reason embedding an image does not work. Here is a code snippet:
void LeafEditView::onInsertImage()
{
// bring up a dialog, ask for an...
Since File API will enable access to the content of local files it is now possible to do image resize before upload (a fairly common task) without any additional technology like Flash or Silverlight. Except that I can't find any Javascript library that would be able to handle images in binary form. Is there any? Maybe there is some in Fl...
Hi,
I am trying to center align (both horizontally and vertically) the image inside a div box in html and css. I am not able to center align it. Here is my below code.
<div style="float:left;margin: 10px" >
<div style="border:1px solid gray;width: 60px;height: 60px;text-align:center;">
<img style="max-height: 60px;max-width...
Hi everybody,
I'm using CKEditor to allow the users sending nice rich texts.
The problem is that, with the very new version, we must couple it with CKFinder (which requires a license key if deployed) to allow the users "exploring the server" or downloading the images.
Is there another free plugin than CKFinder? Should I go back to the F...
I wrote a simple Sinatra app that generate an image using rmagick from some user inputs. The image is saved in the ./public directory with a unique file name. The unique file name is used in the HTML generated by Sinatra so that each user gets the correct image. Once a day a script deletes files older than one hour. This is clearly a ter...
im having dynamically created image tags, in php foreach function img scr=asdfsf.gif... so if i click on a particular image the src of the image store in a javascript variable
should not use onclick, use binding the image javascript..
...
I understand it is possible to store images in Databases as Binary large objects. But I used to see in some forum web applications that they are stored as flat files in web server machine and retrieved when needed.
What is the advantage and disadvantage in both methods?
When to go for which approach?
...
I am developing smart device application in C#. I am not getting how to add image to button control in smart device application. Please make sure that all the functions of the .net framework does not work in .net compact framework. Can u provide me the code or link through which I can resolve the above issue?
...
I have problems with the "imagettftext" function. The following code works if I comment the problematic line (I see a yellow rectangle).
session_start();
$text = $_SESSION['code'];
header("Content-type: image/gif");
$image = imagecreate(150, 15);
$red_bg = 255; $green_bg = 255; $blue_bg = 155;
$bg_col = imagecolorallocate($image, $red_b...
img src tag
i want, when click on image the source of the image in javascript variable
i want to use the src in javascript
...
<script type="text/javascript">
function GetSrc(elem)
{
alert ( elem.src );
}
</script>
<img src="images/yourimage.extn" id="img1" onclick="GetSrc(this);" />
i want to convert elem.src to string, String(elem.src); not working
...
I'm working on recreating "Legend of Zelda a Link to the Past" as part of an assignment.
And I've got the following problem, the game world is a BufferedImage of which I subImage() the part I need for the current location of the player. The game works but uses 80 / 110 percent of the CPU. A profile revealed that the culprit is the drawi...
I have no problem getting to the metadata is the file is local, but if my reference is a more general http uri -- that's the problem. Here is my test code:
String s = "http://myserver/MediaStore/pic1.jpg";
//String s = "c:\\MediaStore\\pic1.jpg"; <==== This works
Uri u = new Uri(s, UriKind.RelativeOrAbsolute);
...
Hi,
How can I fill color on the grid boxes randomly?
Rather than orderly as shown in picture here:
public class grid extends JPanel{
Label one = new Label();
Label two = new Label();
Label three = new Label();
Label four = new Label();
public static void main(String[] args){
JFrame jf=new JFrame();
...
I'm trying to create a fast image generator that does lots of 2d transformations and shape rendering, so I'm trying to use a BufferedImage and then acquire the Graphics2D object to perform all my drawing. My main concern now is to make is really fast so I'm creating a BufferedImage like this:
GraphicsEnvironment ge = GraphicsEnvironment...
In mobile, the internet is slow. If I have a list of 500 images, this is going to take forever to load. I'd like to load the title of the image in a list, but as the user scrolls down, I want to start loading/downloading the <img> tag. How do I use Javascript/Jquery to do this?
...
Hi Iam loading image at runtime.I have the problem where i have to place the image in folder.Actually i put it in folder named as Image.But it shows the error that it can not find image in folder ...bin\debug\HH.bmp.
So i pasted it in debug folder and works fine.
But when i take EXE out of Debug folder and when i run it,it does not work...
Hi i want to make one WPF control library applcaiton.
In that i will load images depends on the text.
So i used code like this
if (string.Compare(AlStatus,"HH")==0)
src1 = @"pack://application:,,,/WpfApp;component/data/HH.bmp";
else
src1 = @"pack://application:,,,/WpfApp;component/data/Normal.bmp";
.
.
Img1.Source = new ImageSour...
I know that the .NET Framework comes with an image conversion class (the System.Drawing.Image.Save method).
But I need to convert a 24-bit (R8G8B8) bitmap image to a 16-bit (X1R5G5B5) and I really got no idea on this kind of conversion, and a 24-to-16-bit change in the bmp header wouldn't work (since we need to convert the entire image ...
Ok, basically i have a vb6 app and i want to wrap the text in a rich text box around an image i have inserted into the rich text box from the clipboard. At the moment when you insert an image, the text does not wrap around the image...
let me know if you need a screenshot of what i am trying to explain.
Kind Regards,
...