I am trying to append an image after the last input field in a div, any ideas as to why this won't work?
$('<img src="img/loading.gif" id="loading_img" />').appendTo($(form).find('input:last'));
When I select a running instance and click the "instance actions" pull-down, the option to bundle the image to an S3 bucket is grayed out. Why would this be?
See here:
http://skitch.com/eoligarry/dnr7n/aws-management-console
I am signed up for S3, and this is not a windows instance.
<a class="success" href="javascript:void(0)"></a>
//CSS for setting background for above link
a.success:hover{
//set background image
}
What my intent is to change the class of link on server side based on success/fail and set icon for the link accordingly. But above CSS is not working as expected.
Can someone plz help with this.
I am displaying 5 userImage on one screen.I want to display userID and email on mouseover on those userImage.I used alt property of image control but that not working in mozila,chrome and some versions of IE.
So what are the other better ways to display info on mouseover?
I'm trying to make a basic application that displays an image from the camera, but I when I try to load the .jpg in from the sdcard with BitmapFactory.decodeFile, it returns null.
It doesn't give an out of memory error which I find strange, but the exact same code works fine on smaller images.
How does the generic gallery display huge pictures from the camera with so little memory?
I am using Coldfusion to view images stored in the file system and I can READ the EXIF metadata of JPEGs, but I'd like to know if it is possible to modify this information and re-save the image.
Hi I am new in iphone. I want developing a application that we can capture image from iphone camera.
How to do this i am not understand. Plz help me how to do this with source code and link where we can read this.
I used Mike Swanson's illustrator to xaml converter to convert some of my images to xaml.
The convert creates a viewbox that contains the image. These viewboxes I made resource files in my program.
The code below shows what I'm trying to do: I have a viewmodel that has an enum variable called PrimaryWinding of type Windings. The values PrimD and PrimY of the enum select the respective PrimD and PrimY xaml files in the resources.
<UserControl.Resources>
<DataTemplate x:Key="PrimTrafo" DataType="{x:Type l:Windings}">
<Frame Source="{Binding}" x:Name="PART_Image" NavigationUIVisibility="Hidden">
<Frame.LayoutTransform>
<ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
</Frame.LayoutTransform>
</Frame>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding}" Value="PrimD">
<Setter TargetName="PART_Image" Property="Source" Value="Resources\PrimD.xaml" />
</DataTrigger>
<DataTrigger Binding="{Binding}" Value="PrimY">
<Setter TargetName="PART_Image" Property="Source" Value="Resources\PrimY.xaml" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</UserControl.Resources>
<!--The contentcontrol that holds the datatemplate defined above-->
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"></ColumnDefinition>
<ColumnDefinition Width="2*"></ColumnDefinition>
<ColumnDefinition Width="1*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<ContentControl Grid.Column="0" Content="{Binding PrimaryWinding}" ContentTemplate="{StaticResource PrimTrafo}"/>
</Grid>
This code works. Only I can't resize the drawings to the size of the grid cell. I added the ScaleTransform class to resize the image.
Is a Frame the wrong class to hold the drawings?
Should I use the ScaleTransform class to resize the drawing to the size of the cell? And how can I do that dynamically?
Task: (all in code, not visual) create a canvas, place into it some labels and draw some lines, then cache it as byteArray.
The problem is that if I cache an object that is already drawed on the screen, it works great, but if I cache a canvas, that have been created few lines earlier, this results white image.
Is there any solution to cache a display object, that was created in code, but not intended to be displayed at all?
I've written a simple top down parser using c#. It's a console application. I'd like the parser could save, at the end of the computation, an image file of the parse tree. I think I could use graphviz, but I'd like to know your opinion.
Thanks.
I've looked around a bit for a great JavaScript Sprite Sheet animator lib/engine but couldn't find any good ones so I thought I'd ask around =).
What I'm looking for in the engine is:
Animate an image in a non-canvas setting (ex: div via css or img
tags)
Control frame rate/animation speed
Flags to loop or to animate
once etc.
Are there any engines like this out there? If not I can always make my own but then again, I don't want to re-invent the wheel =].
I am using wordpress as a full on CMS on a site I am building. One thing I cant seem to figure out is how to link up my navigation bar to the pages I am creating in wordpress. I am using a sprite image hover navbar that is defined in the header.php file.
Does anyone have any idea how I can take a typical CSS sprite navbar and link it up with the pages I am creating within wordpress?
Is it good to add line-height in body{line-height:1.5} or it would be better if i add separately for tag by tag like p{ line height:1em} etc.
Edit:
body {line-height:in em} create problem with if we put image with float inside
Edit: 24 April 2010:
If i have to add different line heights to elements
like
p { 1.4}
h1 {1.6}
h2 { 1.2}
ul li { 1.1}
then shouldn't i use line height in body { 1.4}
if body { 1.4} and h1 {1.6} then what would be line height for h1?
I have one node(ImageView) that displays an image and another node(rectangle) that resides on top of it. The behavior I need is that when the mouse is dragged(press-drag-release gesture) over the rectangle, both the nodes should move coherently. My thought process goes in the following direction:
• Move both the nodes by the same distance in the direction of the drag.
For this option(maybe there are more options) I need the distance between the start and end of the mouse drags. I tried capturing the start and end coordinates of the drag but have been unsuccessful. I think I am getting lost in which handlers to implement.
The code I have is below:
import javafx.event.EventHandler;
import javafx.geometry.Rectangle2D;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
public class MyView
{
double mouseDragStartX;
double mouseDragEndX;
double mouseDragStartY;
double mouseDragEndY;
ImageView imageView;
public MyView()
{
imageView = new ImageView("C:\\temp\\test.png");
}
private void setRectangleEvents(final MyObject myObject)
{
myObject.getRectangle().setOnMousePressed(new EventHandler<MouseEvent>()
{
@Override
public void handle(MouseEvent mouseEvent)
{
mouseDragStartX = mouseEvent.getX();
mouseDragStartY = mouseEvent.getY();
mouseEvent.consume();
}
});
myObject.getRectangle().setOnMouseReleased(new EventHandler<MouseEvent>()
{
public void handle(MouseEvent mouseEvent)
{
mouseDragEndX = mouseEvent.getX();
mouseDragEndY = mouseEvent.getY();
myObjectDraggedHandler();
}
});
}
private void myObjectDraggedHandler()
{
Rectangle2D viewport = this.imageView.getViewport();
double newX = this.imageView.getImage().getWidth()
+ (mouseDragEndX - mouseDragStartX);
double newY = this.imageView.getImage().getHeight()
+ (mouseDragEndY - mouseDragStartY);
this.imageView.setViewport(new Rectangle2D(newX, newY, viewport.getWidth(), viewport
.getHeight()));
}
}
P.S: This code is just for indicating what I am trying to implement and will not compile correctly.
Or maybe my question should just have been:
How to capture the length or span of a mouse drag?
I have a semi-transparent PNG as a background image for a div that that I'm placing over some links. As a result, the links aren't clickable. Is there a way I can hover and click "through" the div that's on top? (BTW, to position to foreground div I'm using absolute positioning and z-index.)
Thanks!
Mike
I am creating an desktop application which is capable of sending emails. I downloaded mail.jar and javaee.jar and added it to my project libraries. However, when I am trying to use it, it gives me the error
java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - package javax.mail does not exist
I imported those packages as,
import javax.mail.*
It added correctly, as shown in the following image. Please help!! How can I make this work?
I Use the following code to load png image:
UIImage *imageBack1 = [UIImage imageNamed:@"Bar1.png"];
UIImage *imageBack2 = [UIImage imageNamed:@"Bar2.png"];
imageBack1 work right when imageBack2's value is nil,
Bar1.png and Bar2.png are located at the same place,but why Bar2.png couldn't be load?
I have an asp.net menu control in my application.Each node is an image of different color and the styles of the subnodes are set in the sitemap.How can I set the mouse hovering of back ground color for each subnode which is of different color?
I assigned these classes menu second_menu menu_about_author to ul so the html code looks like <ul class="menu second_menu menu_about_author"> I wanted this ul to have the same properties like menu and second_menu and then I wanted to move the menu_about_author little bit down.
I did so by .menu_about_author { margin-top:40px; } but it didn't work
any idea why the margin-top:40px; is crossed? the link to the image is [1]: http://img153.imageshack.us/img153/882/58daeef0c3c846e4a8d6321.png
I'm looking for a library (or plugin) that help me create a slideshow where (besides the simple ordering of images) I'm able to define the beginning and ending positions (either X/Y, or Zooms) for a given image and the plugin animates the intervening steps between them.
Flash has a number of tools/libs like this, i'm sure jQuery has seen similar. Ideally something that offers a range of easing effects as well. I understand these elements are native to jQuery...i'm looking for a time-tested wrapper.
thx
I have image map like this
<map name="imgmap">
<area shape="poly" coords="63,10,64,38,89,37,91,10" href="#" id="x1"></map>
and how can I color that area dynamically with jquery like
("#x1").color('red')
?
The title pretty much says it all.
I got an image with which links to another page using the < a href="..." < img ... < /a How can i make it make a post like if it was a button < input type="submit"...?
What actually happens to the .box file (which according to the docs is simply a vbox image in tar form, in a particular format) after the first command
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
is executed?
I can't seem to find the filesystem location of lucid32.box after the download has successfully completed...
I am aware it doesn't really matter as
vagrant init lucid32
vagrant up
vagrant ssh
will get me into the vm irregardless.
But I am curious where .box is located.