Background Image/Watermark

I've searched the API's and the sample code. I can't seem to find an easy way to set a background image. Seeing as how I am a newbie at this perhaps I just don't know how to work with the classes as well as I thought.
Any suggestions, code samples or URL's to help with this problem?

Check out this thread:
http://forum.java.sun.com/thread.jsp?forum=57&thread=316074
Any suggestions, code samples or URL's to help with this problem? Yes, don't forget to search the forum before posting questions.

Similar Messages

  • Background Image for BIP 'Certificate'

    Hey there,
    Im new to BIP, I ususally lurk over in the OBIEE side.
    Im trying to create a 'certificate' type of report in BIP, I've got it working to an extent, heres what I've done :
    pull in the certificate 'skeleton' image as the background image in MS Word, plot the BIP data fields in the name, date & manager locations on the certificate etc. Repeating Group is set for each row, i get a certificate per user - perfect !
    except....
    the background image looks fine in Word when viewing the page at 100% in 'Print Layout' but the resulting PDF has aligned the picture differently so the location of the text fields I plot in Word is not mirrored in the PDF.
    I should add the background image needs to cover 100% of the page.
    Is there an optimum size for an A4 background ? I know paper sizes are not measured in pixels, but does the PDF generation use a pre-set DPI that I can work from ? Anybody else have probs lining up a background image?
    Bit stuck , I thought this would be the easy bit :-)
    Thanks in advance,
    Alastair

    For those that are interested I've achieved my goal,
    I gave up trying to decipher why small changes to Background images & Watermarks where having a large effect on the PDF output, so I've embedded the picture in the Word template and through trial and error lined them up.
    Im still not happy that what I see in Word is not directly what I see in the PDF, I must have created 50+ previews using the left a bit, left a bit, down a bit , left a bit approach :-) But they now line up at least in the PDF output.
    I'd be interested if anybody knows workarounds, the problem seems to be when you use picture wrapping properties of behind text or in front of text. I guess RTF doesn't support all the Word options (ie text boxes etc) so we are left with the trial and error approach.
    Reminds me of the pain of working with Oracle reports trying to line things up :-) I think I'll stay over in OBIEE land

  • Can't get background images to display on page

    I've been trying to add a background image/watermark to a document. Following the instructions in "Help" I put the image where I want it, and select the command "Move objects to section master." Instantly the image becomes invisible. Even with the opacity slider set at 100% the image is just not to be seen. I can still select it move it back to the document, but of course that's not what I'm trying to accomplish.

    And what color is the background of the Table?
    I am guessing not None.
    Peter

  • Getting a watermark background image to underlay box lines and lines.

    I've added a page header to my report with a watermark that underlays following sections.  My box lines aren't showing up because the image covers them. Everything else displays above the image.  Is there any way to solve this problem without using text boxes with borders?

    I tried this and it didn't turn out very well. My image is really light gray in colour (with a white background) and I'm having a rough time making the transparency show up in Crystal since it won't support .GIF images. When I do it in .JPG or .PNG it corrupts the image so bad you can barely see it after its been made transparent. I'm using GIMP 2.0 as my editor. I don't know if there is an easier way to do this. You would think the program would have a simpler way to add a background image into reports.  -.-
    Edited by: MarcieHennessy on Jan 9, 2010 12:12 AM

  • Background image in a portal page??

    Hi,
    How can I set a background image or watermark in a portal page instead of the plain background that comes by default.
    Regards
    Sreeram

    Ofcourse Chris, very true. I should have mentioned the workaround in the previous post itself. Infact the solution is based on your suggestion in the previous post.
    Every community page that is generated by the portal has a <div> element with a unique id. The id of div element is made up of the following string "pt-portal-content-" followed by the object id of the community page (which is unique). This <div> element has the style portalContent set to it by default.
    I knew the page I would want the background to be applied to. And I knew the portlets that would go only on this page. These portlets are content portlets created from the publisher.
    So in the presentation template code for one of these portlets I included a javascript function and set the background property of the div element, conditionally checking the div element's id to make sure that it is the community page I wanted to modify. And this javascript function is registered to the onload event.
    Regards
    Sreeram

  • Dynamically Calling Background Image instead of standard setting

    Hi all,
    There is a requirement that, based on some condition I have to display shaded background image, say 'zimage1' .so as a result it should print in all pages. If condition fails, we have to display other image, say 'zimage2' in background. If both fails, no need to display background image.
    If any body knew the solution please assist me in this regards.
    Thanks & Regards,
    Nagesh.

    Do any one knew how to set Dynamic Background (Watermark) Image instead of going for the standard setting in Page. (by selecting BACKGROUND PictureTab).
    I want to pass a variable kind of information to the following fields during runtime.
    ie.,
    Path: Page->Background Picture.
    Name: <Variable image name>
    Object: GRAPHICS
    ID: BMAP
    and other properties like Ouput Mode, Position..etc.
    That image should come at backgroudn for all the pages.
    Hope, you have understood the issue here.
    Please do update me with relevnat ideas, if any.
    Thanks & Regards,
    Nagesh.

  • SSRS - A Subreport background image is overridden by background image of parent report

    Hello. I have a background image on my parent report and a different background image for my sub reports. The background image of my sub reports are instead inheriting the background image of the parent report. I've researched and found nobody talking about
    this. All my images are embedded.
    Is there away around this?
    Thanks,
    James
    James

    For both the parent report and the sub report, I right clicked the Images folder in the Report Data section and embedded the images in the rdl. The parent report has an embedded image called watermark. The child report has an embedded image called subreportwatermark.
    In the parent report, I added the following to the report properties:
    In the child report, I added the following to the body properties:
    Yes, I use an expression to determine whether to use the watermark or nothing based on a field of a dataset as you see above in both Value properties of both the report properties of the parent report and the body properties of the child sub report.
    If I run the sub report only in the BIDS solution for a child row that has Y for watermark value, the sub report's subreportwatermark does show.
    If I run the sub report only in the BIDS solution for a child row that has N for watermark value, the watermark does not show.
    So far so good.
    If I run the parent report in the BIDS solution for a parent row that has Y for watermark value, I don't get what I
    expect. Here is the scenario. Five pages are produced. One for the parent, and one each for the sub report.
    Parent Row - Watermark Y
        Child Row 1 - Watermark Y
        Child Row 1 - Watermark N
        Child Row 1 - Watermark N
        Child Row 1 - Watermark Y
    What I expect to see.
    Page 1 - Parent Report's watermark should display.
    Page 2 - Child Sub Report's subreportwatermark should display.
    Page 3 - Child Sub Report's - No watermark at all.
    Page 4 - Child Sub Report's subreportwatermark should display.
    Page 5 - Child Sub Report's - No watermark at all.
    To be clear. I should NEVER expect to see the parent report's watermark on pages 2 - 5.
    What was the actual result? This is what I see in BIDS when I click the preview tab in
    Print Layout.
    Page 1 - Parent Report's watermark displayed.
    Page 2 - Child Sub Report  - Parent Report's watermark displayed.
    Page 3 - Child Sub Report  - Parent Report's watermark displayed.
    Page 4 - Child Sub Report  - Parent Report's watermark displayed.
    Page 5 - Child Sub Report  - Parent Report's watermark displayed.
    This is what I see in BIDS when I click the preview tab in View
    Layout.
    Page 1 - Parent Report. No watermark displays.
    Page 2 - Child Sub Report  - Child Report's subreportwatermark displayed.
    Page 3 - Child Sub Report  - No watermark.
    Page 4 - Child Sub Report  - Child Report's subreportwatermark displayed.
    Page 5 - Child Sub Report  - No watermark.
    Both the print layout and view layout is wrong. What matters is what prints or is saved to a pdf. What prints and gets saved to a PDF is the Print Layout view.
    If you want, we can swap rdls. Can you send me your rdls?
    You can find my rdls at:
    https://onedrive.live.com/redir?resid=4292E6DE18E2BB8F!3676&authkey=!AKJwIRWxPmOPitw&ithint=folder%2crdl
    Thanks,
    James

  • Background Image in SharePoint 2013

    Hi,
    Whenever I add a background image in SharePoint 2013, approx. 99% of the background image has an automatic overlay applied; some form of automatic transparency, so that the image is more like a watermark.
    Oddly, at the bottom of the page, there is about 40px visible of the true image, with no overlay applied.
    How can I remove this default transparency, so that the background image displays as it should?
    Thanks,
    Dan

    Hi Dan,
    If you have SharePoint designer 2013, Then go To >> All Files >>   _themes >> Search there for COREV15."blablabla" i think you got 2 files named COREV15 but try to search in one of these items to body {} or try to do "crtl + f" and
    find "background colour" or search on "transparent"
    hopefully this helps you a bit.
    Good luck!
    Malor

  • Dynamic Image Watermarking

    Hi All,
    I have a requirement to dynamically insert the Image watermark depending on the Organization which i get from my XML output. For example
    IF
    <ORGANIZATION>Org1</ORGANIZATION>
    THEN insert Org1.jpg as image watermark
    IF
    <ORGANIZATION>Org2</ORGANIZATION>
    THEN insert Org2.jpg as image watermark
    I already tried using the dynamic imaging method according to the link below:
    http://blogs.oracle.com/xmlpublisher/2006/05/dynamic_images.html
    It's working fine if i use image *(url)* as part of my template but not as the watermark
    I also tried using the Subtemplate but this is calling only my template but not the image watermark
    Please let me know if i am missing some thing or if there is any other way to handle this.
    Thanks,
    Prasanth

    Presumably you mean this -
    http://mediaconsults.de/1test/steckertest.php
    And it's not clear what that is going to show me.  Looking at the code on the page -
    <html>
    <head>
    <title>Unbenanntes Dokument</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body background="test%20png.png">
    <div id="Layer1" style="position:absolute; left:1290px; top:246px; width:95px; height:112px; z-index:1"><img src="stecker_off.png" alt="no"height="101" width="71" /></div>
    </body>
    </html>
    I would advise you the following:
    1.  Put a valid and complete doctype on that page!
    2.  Get rid of the resize if NN4 javascript - it hasn't been needed for nearly a decade.
    3.  Fix your image code (note the missing space after "no"!
    4.  1290px is way too wide unless you want lots of people scrolling right to see things.

  • How to specify relative path for background image  in xsl

    Hi,
    I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
    Can anyone tell how to do this???
    Thanks,
    Sanjeev.

    I have a fo:block like this :
    <fo:block border-style="solid" border-width="0.2pt" text-align="left"
                             background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
                             font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
                             padding-bottom="1pt">
                             <xsl:value-of select="tr/td/span" />
                        </fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
    has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
    Thanks.
    sanjeev.

  • In linux, saving a background image (set as Desktop)feature doesnt download my image to wallpaper folder..or even to standard "Save download" feature. Can I tell firefox where (what folder) to save my "Set as Desktop" picture?

    When I find a suitable picture to use as wallpaper" I often right click and use the menu item "Set as Desktop Background". The file ""example.jpg" is saved in directory\folder "/home/user" rather than for example "/home/user/my wallpaper" or in the directory
    "/home/user/Downloads". The latter as being set under the "Downloads" section on the "General" tab in the "Preferences" dialog box.
    Is there a configuration file where I can change the default location to save my "Set as Desktop Background" images. Or better still can the menu be customized to launch the application that allows me to set my desktop wallpapers?
    I am using the "PCLinuxOS" Linux OS but I have encountered this issue in many if not all the Linux distributions I have sampled.

    Don't use "Set as Desktop". Use ''' "Save Image As..." ''' instead, and file it with your other "wallpaper" images so the operating system has access to those images.
    IIRC, Firefox saves a "desktop image" to the Profile folder, and it will only save one image, at that. Change the image and the previous one is gone.

  • Washed out background image on Treo Pro

    Hi:
    When I set my background image on my today screen (check the box in settings, browse to image - use 320x320 resolution) I get a "washed out" version of the image regardless of its original color, tone or intensity. Images from the preinstalled themes are fine - vibrant and clear - but the user set images are very light (almost like a 50 percent transparency in Photoshop for example). I have tried both .jpg format and .png. Backlight settings do not cure this either.
    Any ideas?
    Thanks.
    Post relates to: Treo Pro T850 (Bell)
    This question was solved.
    View Solution.

    Hi Again:
    Upon further investigation, I have discovered that the options for setting background and transparency levels is found through the pictures and videos explorer not the file explorer.
    As suggested I have set the transparency to 0 and the image (Crab Nebula through the Hubble space telescope) is as bright and vibrant as it should be.
    Thanks again for the direction - it's much appreciated.
    Post relates to: Treo Pro T850 (Bell)

  • 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).

  • 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 advance

    I 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);
    }

  • How to set a background image to fill the entire screen on any device in a spark mobile application

    Hi,
    I started developing a mobile application with Flex.
    I'm trying to set a background image to fill the whole screen. I've been stucked at this point for days now. I tried everything and no solution seems to work for me.
    I'm using a TabbedViewNavigatorApplication and i need to set some background images on views.
    I need my image to fill the entire screen on any device. i don't need to mantain image aspect ratio,  just need it to be fullscreen. This seemed to work when setting a custom skin on the TabbedViewNavigatorApplication, however this blocked all my views for some reason and all components contained in view became invisible.
    Can you please tell me how can i achieve this?
    Kind regards,
    Dan

    Basically you need a larger image which can accommodate any device. The trick is to show only what each device can display, so therefore some clipping will occur based on device. Have something centered and towards margins have a  gradient or just plane colors that way the stuff in the middle will be visible on every device while nobody will care if you are clipping from the color fill.
    C

Maybe you are looking for

  • Problems with Adobe Premiere Elements 10 silent installation with SCCM 2007

    Hi, i have some issues when i try to install Premiere Elements 10 from Config Manager. I have followed these instructions: http://www.appdeploy.com/packages/detail.asp?id=2331 If i try this commandoline: setup.exe" /L1033 /S /V"SERIALNUMBER=xxxx-xxxx

  • BI 7. Report Error

    Hi Experts, I am working BI 7.0, now simple one report created, i want to executed it saying Error : No Applicable Data Found. But, in Infube all data available, What to do, I am very confusion, i am not able to see the report results. Please provide

  • Regarding the Chain num

    Hi, I have an issue while developing a report on Invoice details for a particular week. My inputs are Customer Num & Chain Num. But the problem was how to retreive this 'Chain Num'... and if possible whats this 'Chain Num' is all. thanks in advance.

  • Sony DSR PD-170 Non-Drop Frame Footage

    I recorded footage on my PD-170 in non-drop frame (NDR) and went to capture my footage into Final Cut Pro. I changed my sequence settings to NDR and I went to Batch Capture some clips and after each one it told me that my PD-170 was in drop-frame mod

  • Core services configuration files in Operating System

    Hello everybody, I am trying to make a modification to CMC --> Servers --> Service Categories --> Core Services --> CentralManagementServer (Common settings) However, I cannot access it because of a connection issue (that has to do with the modificat