Anchored graphic as background image?
I am working with text flowing continuously through a master text frame unto multiple pages and I am trying to anchor a full-page background image (with bleed) onto specific pages. Is this possible?
I want the background image to stay with the relevant heading on each page. However, when I use "Object/Anchored Object/Insert" to do this with "custom" as the anchor option I end up with a frame on the same layer as my text. This is okay, but when I place an image in the frame, it covers the text I have entered in the text frame. I can see the dotted line indicating the anchor connection, but not the text it is anchored to. I can't change the order of objects within the layer because the "Arrange" options are greyed out. Changing the text wrap options does not help.
Thanks Bob! Really good to know. I will stop hitting my head against a brick wall!
Adding backgrounds to master pages doesn't really cut it since I still can't have them flow dynamically with the continually evolving text in this project. (I suspect I might be able to flow backgrounds with text in Word, if it came to it, but of course I chose InDesign to give me more control, particularly over the non-text elements of the layout).
Similar Messages
-
Gallery Demo... how to toggle background-image on playLabel
Anyone? I'd like something besides the play/pause text --
basically, using a background-image... how can I tap into whatever
it is that toggles the text to get it to toggle the css instead?
Any help appreciated, thanks!quote:
Originally posted by:
n2dreaming
Anyone? I'd like something besides the play/pause text --
basically, using a background-image... how can I tap into whatever
it is that toggles the text to get it to toggle the css instead?
here's a solution that seems to work for me:
1) look in the gallery.js file and find the StartSlideShow()
function
2) Find the two instances of playLabel.firstChild.data=
3) put a single space in there instead of play and pause
4) create your graphics for previous, next, play and pause
5) add IDs to your links in the #transport
<li><a> (#nextLabel, #prevLabel, #playLabel)
6) set up css rules to use your next, prev and pause graphics
as background-images, using this format:
#transport a#nextLabel:link, #transport a#nextLabel:visited {
background-image: url(sharedimages/next.gif);
background-repeat: no-repeat;
background-position: center center;
7) set up a :focus rule for a#playLabel:focus, (and :active
for IE) to use the play background-image:
#transport a#playLabel:focus, #transport a#playLabel:active {
background-image: url(sharedimages/play.gif);
background-repeat: no-repeat;
background-position: center center; -
Creating graphics that will reveal a background image underneath?
I have a background image in my DW doc and I'm creating an interface in FW and some of the images I want to display as semi-transparent so the background shows through. I select the image, select transparency and lower it, save as a png32, though when I preview through DW the graphic doesnt display at all.
Am I doing something wrong?
Thanks.My file consists of different slices. I tried clicking on both the graphic (a rectangle shape) and the slice, and I still do not see an Alpha Transparency option. There is a Transparent checkbox option in the Property Inspector, though it is greyed out.
Thanks. -
Background Image on a Component
How do I add a background image to a component, in this case, a scrollpane containing a drawing area. This is for a level editor for my game. I want a level's background image to be drawn and tiled so the user can get a better preview of what the level will really look like. Is there an easy way to do this?
Do you have a little code-snippet on how to use this
class? The only things I've ever needed to do in
graphics is loading, transforming, and drawing images,
so I'm a bit in the dark on anything outside that.I think something like this will do it. I don't know for sure though since I've never used it:
private BufferedImage bImage;
// ... constructors, code blahdy blah, construct the bufferedimage here etc.
public void paintComponent(Graphics g) {
// the Rectangle2D in user space used to anchor and replicate the texture:
Rectangle2D anchor = new Rectangle2D.Double(0,0,20,20);
// the actual paint object:
TexturePaint tpaint = new TexturePaint(bImage, anchor);
Graphics2D g2d = (Graphics2D) g;
g2d.setPaint(tpaint);
// g2d.fillRect(0,0,getWidth(), getHeight());
} -
Background image not scrolling with text
My foreground text will resize with my browser but the background stays stationery, remains in the upper left. How do I fix this? I have included part of my code.
Ideally I would like to anchor text boxes to background image so it will scroll all together. If this can't be done I can use the margins and padding to adjust my text to work with the background I just need it to move with it. I've seen samples of this, which i think may have been done in photoshop but I would like to keep the copy live in DW. FYI, I added "background-attachment:scroll" to the code. I have searched and searched online for a solution to no avail. I am attaching a coupld of PDFs so you can see where I want to go. Any help is greatly appreciated. Thanks a bunch in advance and please be gentle.
body {
background: #666666; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center;
background-image: url(Images/Background_Radial77.jpg);
background-repeat: no-repeat;
margin-right: 0%;
margin-top: 19%;
color: #FFF;
background-color: #FFF;
background-attachment:scroll
margin-left: 0%;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
margin-bottom: 0;
margin-left: 0;My foreground text will resize with my browser but the background stays stationery, remains in the upper left. How do I fix this?
That's how web pages work. Remember, web design is nothing like print design. Printed pages or graphics are static. Web pages must be flexible to accommodate different displays, text sizes and varying amounts of content. Trying to precisely position text or other objects over a huge background is a bit like trying to nail Jello to a wall. No matter how hard you try, it will never hold up.
Fixed Background Example -
http://alt-web.com/DEMOS/fixed-background.shtml
Scrolling Divisions Example -
http://alt-web.com/DEMOS/multi-scrollbars.shtml
Your best option is to slice and dice your background image into usable segements in Photoshop or Fireworks. Save images only. Then re-assemble slices in DW to create flexible containers.
Basic Tutorial - Bringing 3 image slices into a CSS layout -
http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
Advanced Tutorial -
Taking a Fireworks (or Photoshop) comp to a CSS based layout in DW
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
Good luck with your project,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Problem with Background image and JFrame
Hi there!
I've the following problem:
I created a JFrame with an integrated JPanel. In this JFrame I display a background image. Therefore I've used my own contentPane:
public class MContentPane extends JComponent{
private Image backgroundImage = null;
public MContentPane() {
super();
* Returns the background image
* @return Background image
public Image getBackgroundImage() {
return backgroundImage;
* Sets the background image
* @param backgroundImage Background image
public void setBackgroundImage(Image backgroundImage) {
this.backgroundImage = backgroundImage;
* Overrides the painting to display a background image
protected void paintComponent(Graphics g) {
if (isOpaque()) {
g.setColor(getBackground());
g.fillRect(0, 0, getWidth(), getHeight());
if (backgroundImage != null) {
g.drawImage(backgroundImage,0,0,this);
super.paintComponent(g);
Now the background image displays correct. But as soon as I click on some combobox that is placed within the integrated JPanel I see fractals of the opened combobox on the background. When I minimize
the Frame they disappear. Sometimes though I get also some fractals when resizing the JFrame.
It seems there is some problem with the redrawing of the background e.g. it doesn't get redrawn as often as it should be!?
Could anyone give me some hint, on how to achieve a clear background after clicking some combobox?
Thx in advanceI still prefer using a border to draw a background image:
import java.awt.*;
import java.awt.image.*;
import javax.swing.border.*;
public class CentredBackgroundBorder implements Border {
private final BufferedImage image;
public CentredBackgroundBorder(BufferedImage image) {
this.image = image;
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
int x0 = x + (width-image.getWidth())/2;
int y0 = y + (height-image.getHeight())/2;
g. drawImage(image, x0, y0, null);
public Insets getBorderInsets(Component c) {
return new Insets(0,0,0,0);
public boolean isBorderOpaque() {
return true;
}And here is a demo where I load the background image asynchronously, so that I can launch the GUI before the image is done loading. Warning: you may find the image disturbing...
import java.awt.*;
import java.io.*;
import java.net.URL;
import javax.imageio.*;
import javax.swing.*;
import javax.swing.border.*;
public class BackgroundBorderExample {
public static void main(String[] args) throws IOException {
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame f = new JFrame("BackgroundBorderExample");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextArea area = new JTextArea(24,80);
area.setForeground(Color.WHITE);
area.setOpaque(false);
area.read(new FileReader(new File("BackgroundBorderExample.java")), null);
final JScrollPane sp = new JScrollPane(area);
sp.setBackground(Color.BLACK);
sp.getViewport().setOpaque(false);
f.getContentPane().add(sp);
f.setSize(600,400);
f.setLocationRelativeTo(null);
f.setVisible(true);
String url = "http://today.java.net/jag/bio/JagHeadshot.jpg";
final Border bkgrnd = new CentredBackgroundBorder(ImageIO.read(new URL(url)));
Runnable r = new Runnable() {
public void run() {
sp.setViewportBorder(bkgrnd);
sp.repaint();
SwingUtilities.invokeLater(r);
} -
Animated gif layered above background image
I have a static background image which is displayed in a JPanel. I need to display animated gifs at certain positions on the base image. For every new frame of the animation, the paint method is called whcih attempts to load the entire base image + all the new animated images which is extremely slow!. It also means the animated gif keeps on getting loaded, and seldom gets beyond the first frame.
Im sure many people have had to do something like this. Is the solution to draw the gifs on the glasspane (or use layered panes), and to have a seperate paint method? or is their a simple approach like setting a special clip area.thanks for the help...
The size of the background image is approx 400*400 pixels (gif or jpg), and the icons are 25*25, and have between 1 and 6 frames.
Here comes the code... I havent finished with the mediatracker stuff, but youll get the idea Im sure.
public void paint(Graphics g) {
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(image,0);
try {tracker.waitForID(0);}
catch (InterruptedException e){}
g.drawImage(image, 0, 0, this); //draw background image (approx 400*400 pixels)
int ICON_ID = -1;
Image img;
//draw all the icons...
//all icons have between 1 and 6 frames. 25*25 pixels.
for (int i = 0; i < icon_IDs.size(); i++) {
try {
ICON_ID = new Integer(icon_IDs.elementAt(i).toString()).intValue();
Point p = dm.getIconPosition(ICON_ID);
if (isAlarm(ICON_ID)) { //ITS AN ALARM - use animated gif
img = getAlarmImage(ICON_ID);
else //NORMAL ICON - no animation
img = DataDefinition.getImageIcon(dm.getIconType(ICON_ID)).getImage();
tracker.addImage(img,0);
try {tracker.waitForID(0);}
catch (InterruptedException e){}
int width = DataDefinition.getSize(dm.getIconType(ICON_ID)).width;
int height = DataDefinition.getSize(dm.getIconType(ICON_ID)).height;
g.setClip(p.x, p.y, p.x+width, p.y+height);
g.drawImage(img, p.x, p.y, p.x+width, p.y+height, 0,0,img.getWidth(this),img.getHeight(this),this);
catch (SQLException sqle) {
System.out.println("Could not find position of icon : " + ICON_ID);
} -
Background Image in JPanel.
Hi, I am trying to set a background image to my JPanel. So far everything ok. However When I add labels to this panel as well the image is displayed but the label is not! I tried to make a search on google, and I found some links pointing to this forum, however none of them (which) I have seen show how to display a backgroun image and a label on top.
What I tried to to is override the paint method of the JPanel. Here I did the following code:
public void paint(Graphics g){
Image i = this.myImage // Were myImage is of type Image with a loaded image in.
g = super.getGraphics();
g.drawImage(i, 0, 0, this);
super.paint(g);
}However this code brings the label and the image always blinking. I can imagine the reason for this is that the paint method is called all the time, and thus the image and the label are being painted all the time and so there is the blinking effect.
Does anyone know how I can set a background image to my JPanel in an efficient way?No Gosling? I just retried it and it works for me.
Maybe you're having trouble with the image URL.
Try it with a local image. -
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS
HI
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMSHi,
goto se78 -> in the menubar click graphic and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
U can import anykind of image which u have stored in ur pc through se78..
Regards,
Priya. -
Please tell me exactly how to add only one background gif to
a cell. I have
told it "no repeat" but it does just that. See:
http://www.pskewedp.info/content.htm
Thank you, Eleanor
Eleanor T. Culling
Leavenworth, WA
European Alps Photos
http://www.eleanorstravels.com/photoblog-issue19.htmThank you so very much! Please watch this thread, I'll
probably need a bit
more help. I have 3-4 images I need to use this way, as table
or cell
backgrounds. Will I have
#cellBg2 and 3 and 4?
Eleanor T. Culling
Leavenworth, WA
European Alps Photos
http://www.eleanorstravels.com/photoblog-issue19.htm
"Osgood" <[email protected]> wrote in
message
news:[email protected]...
> E. T. Culling wrote:
>
>> Please, what do you mean by this:
>> "Refer deesadler's reply in this thread." I don't
see that.
>>
>
> Hi Eleanor,
>
> You need to use some css to apply the background image
to the cell. The
> complete page code you need is beneath these
instructions, just in case
> you have trouble in implementing the changes.
>
> The css is below (add it to the css styles which already
exist in the head
> section of your page)
>
> #cellBg {
> background-image:
url(Graphics/Content-box-top-775.gif);"
> background-repeat: no-repeat;
> }
>
> Then you need the add the id 'cellBg' to the cell as
below and remove
> 'background="Graphics/Content-box-top-775.gif'
>
> Like this:
>
>
> <td id="cellBg" width="774" height="201"
valign="top">
>
>
> Here is the complete revised page:
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <title>Untitled Document</title>
> <style type="text/css">
> <!--
> body,td,th {
> font-family: Arial, Helvetica, sans-serif;
> }
> body {
> background-color: #CCCCCC;
> }
> a:link {
> color: #006699;
> text-decoration: none;
> }
> a:visited {
> text-decoration: none;
> color: #006699;
> }
> a:hover {
> text-decoration: underline;
> color: #006699;
> }
> a:active {
> text-decoration: none;
> color: #006699;
> }
> #cellBg {
> background-image:
url(Graphics/Content-box-top-775.gif);"
> background-repeat: no-repeat;
> }
> -->
> </style>
> </head>
>
> <body>
> <table width="1000" border="0" cellspacing="0"
cellpadding="10">
> <tr>
> <th width="1019" bgcolor="#f8f8dc"
scope="row"><table width="1000"
> border="0" cellspacing="0" cellpadding="0">
> <tr>
>
> <th colspan="2" scope="row"><img
src="Graphics/content header.jpg"
> alt="Content Page" width="995" height="87"
/></th>
> </tr>
> <tr>
> <th width="226" rowspan="3" align="left" valign="top"
> scope="row">Navigation</th>
> <td id="cellBg" width="774" height="201"
valign="top"><center>
> </center> </td>
> </tr>
>
> <tr>
>
> <td valign="top"><center>
> Footer
> </center> </td>
> </tr>
>
> </table></th>
> </tr>
> </table>
> </body>
> </html>
>
> -
How to load a background Image on a JDialog object
Hi All, Actually i am new to java programing and i am stuck in this problem. I am developing a java application which is dialog based (using JDialog objects) and i want to load a background image on my dialog. I hope this could be done and i really appreciate your help because i must deliver this project and this is a user interface requirement.
Try something along the lines of this: Create a new class called BackgroundImagePanel and have it extend JPanel.
Have an attribute in the class for your image, and a method to set it.
Override isOpaque() to return true.
Override the paintComponenet method as such:
public void paintComponent (Graphics g) {
super.paintComponent(g);
if( image == null ) return;
Icon icon = new ImageIcon(image);
icon.paintIcon(this, g, x, y);
Add this panel to your JDialog and then add other component to this panel.
You might have to tweak this a bit, but it should get you close...
Bill -
How do I keep the body background-image centered?
I have a body background-image that does not fill up the
entire window on the tops and bottoms of most monitors (it
strectches to the left and right just fine) and so I would like to
have it centered vertically with equal amounts of the
background-color #ECE5C8.
I assumed using background-position: 50% 50% would do the
trick and it does until switching to full screen mode and all the
content jumps upwards and messes up the whole site layout (IE
only-in friefox, the background-image still doesn't center) so
instead I have the background-position set to: 50% 0%.
Thanks a million to anyone who can help me get it centered, I
know there has to be an easy fix but I sure can't figure it out!
The site can be found here:
http://www.lightspacewebdesign.com/sacredsolasThere would be only two ways to make this layout 'work'.
1. Just make everything on that page a graphic. Then there is
no
possibility that resizing the text in the browser will blow
the layout.
This is a very bad idea for obvious reasons.
2. Have the text containing 'graphical box' built in pieces
so that as the
text expands, it can cause the box to expand as well. The
easiest way to do
this is with a top a middle and a bottom image of the box,
using each as the
background image of three stacked containers. Place the text
in the middle
container and as it expands, it will tile the middle
background image
vertically to give the impression of the box expanding. This
approach
doesn't lend itself to your background image, since there is
no way to tile
the background image to fill the newly created space.
Beyond that, I think you are a dead duck. The problem is not
that this is
what you were given to work with - it's that you didn't
understand how
unusable the design was when you accepted it. I think your
best option now
is to go back to the designer and explain to them how this
lovely layout
only works well in print, and not on the web. Show them how
it fails.
Solicit suggestions from them for how to make it work in a
medium where
there is no way to control the size of the text.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"afriendofcheese" <[email protected]> wrote
in message
news:[email protected]...
> By "a rigid layout scheme that cannot allow flexibility"
I assume you mean
> that
> everything shouldn't be bound inside the position of the
background-image,
> but
> this is what the designer and client gave me to work
with.and so I have to
> make
> due.
>
> With that in mind, I hope someone out there can help me
out with this!
> -
How do I get rid of the thin line that goes across the top Persona background image.
There is a 1-pixel wide light grey line across the top Persona background image between the navigation toolbar and the bookmarks toolbar from left to right. Nomatter whatever persona I have installed, it is there. Same thing also when i hover on any other Persona at Getpersonas.com. It is not there when using any other program and not when only showing the desktop. Only when using FF4. My PC is a HP Pavilion dv6000 laptop using Windows Vista. This is not a monitor issue nor a graphic card issue since it only shows in FF.
for me, it happens on a maximized window. when i do restore to window, the line disappears.
-
How to add a link in a header created only of a background image
Hi, I created my website with CSS in Dreamweaver. Here is a sample page:
http://www.bfranklincrafts.com/NewSite/BonneyLCalendar.html
The header is created with a background image. How do I put in a link in the header that when they click on Ben Franklin Crafts & Frames would take them to the home page? I have nothing to attach my link to?!?!
Thanks.
LioleePutting a clearpixel or transparent.gif over your background image won't work very well if CSS is turned off.
My preference would be to take your Business Name out of the background image and replace it with real text inside an <h1> tag in the foreground - where it will be visible to search engines, screen readers and translators.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Hello all, I hope you can help.
In Photoshop I have a problem to overcome and have delved into the world of scripting..
If there is a quick way to produce the following could someone help me with some pointers?
Here is my situation..
I need to produce a photograph proof card, these are for a double image option so cause me a headache compared to just creating an action..
This proof card really is just a set of two different photographs placed onto a background image.
I would produce two different images of the same person and name them exactly the same except they are suffixed with an A or B to keep them together, these would be in a folder with approx 500 other images for example (250 x two of each person)
My preference for the process would be done in the following sequence:
1/ Open the background file jpg (which is sized at 2400 x 1800 pixels @ 300dpi)
2/ Load the first image from the batch file and place this.
3/ Get the filename of the first image and create it as a text layer and write it below the image at 10 point text size.
4/ Create another copy of this layer and change the font to 3of9barcode font, however the font needs an asterisk before the text then again after it. e.g. *filenameA*
Only the first image has the need for a barcode as they are for the same person. This is at 18 point.
5/ Load the next sequential image from the batch file and place this.
6/ Get the filename for the second image and as Item 3/ create a text layer below at 10 point text size.
7/ Place a png overlay with my copyright information over the images (I need to do this twice, once for each image)
8/ Flatten the images and save the file in a new folder with the same filename as the first image.
I can do this in Lightroom with the exception of putting the barcoded text, and the filenaming, this is because the background image is used as the identity plate and the filename is not based on the data from either photograph..
Can anyone shed some light on where to go from here?
Kind regards
BryanPhotoshop Scripting-wise this seems fairly "easy".
But I would recommend creating a template file (that already combines background image, png overlay and the Type Layers).
Maybe data driven graphics would also be an option …
Photoshop Help | Creating data-driven graphics
Maybe you are looking for
-
HT203175 the itunes library itl cannot be read because it was created by a newer version of itunes
looking for help i try to open my itunes and i get an error message..... the itunes litrary itl cannot be read because it was created by a newer version of itunes???
-
How to create new starting conditions for a workflow of shopping cart
Hi all, How to create new starting conditions for a workflow of shopping cart SATYA
-
Do the apple tv works in the iMac
do the apple tv works in the iMac
-
finally got the opsCenter install, it seems to use dtrace to collect stats. what I am struggling with is that I had to use "root" credential to discover asset, the discover jobs fail because it can't install the agent bundles. the "root" is a role an
-
IPod won't shuffle smartlist?
Recently made new smartlist for my IPod 5 gen, set to skip podcasts, videos, and some music based on Genre. This specific list is set to shuffle, and does in ITunes - but does not shuffle on my IPod. I'm wondering if a specific playlist (as opposed t