Capturing a screen image (not print screen)

Basically I am wondering if there is a way to grab or capture what is on the screen at the time, with java. And I dont mean like manually do it with print screen, i mean having java do it.
Thank You

Did you try searching the forum before posting your question?
Using a couple of keywords from your topic "screen image" I found a solution in the second posting I read. Problem solved in less than a minute.

Similar Messages

  • SAPScript Image not printing

    Hi all,
    In SAPScript I can see an image in the print preview, but when i print it is not printing from spool, other text parts are printing.
    Please help me in solving this.
    Thanks

    Hi,
    It should print from spool. Please check the spool whether the image is there or not.
    Regards,
    Teddy Kurniawan

  • PrintDataGrid's DataGridColumn - Embedded image not printing when you use TextFlow in the item rende

    I'm printing a datagrid using something like  this...
    <mx:PrintDataGrid
      id="printDataGrid" 
      width="100%" 
      height="100%"
      showHeaders="false"
      borderVisible="false"
      horizontalGridLines="false"
      variableRowHeight="true"
      dataProvider="{titles}"
      >
      <mx:columns>
       <mx:DataGridColumn 
        itemRenderer="renderer.TitlePrintRenderer" 
        />
      </mx:columns>
    </mx:PrintDataGrid>
    TitlePrintRenderer.mxml has s:RichText component. I use  RichText's textFlow property to render the text. The approach is working fine  except that if the textFlow has embedded images (<img source=... />), the  images are not printed!
    Is this a bug? Is it a limitation? Has anyone come  across this issue?
    I'm using Flex SDK 4.5.1

    After struggling for 4+ days on using timer / events for printing PrintDataGrid with embedded images in RichText's textFlow, I tried your other suggestion... to convert <img> tags to InlineGraphicElement and give it Bitmap from image loaded from a .gif file. The approach works but the printout skips images in a few rows!
    I've this test case in which, every time I print, it skips printing image in the second row! I also implemented this approach in a more complex test case and depending on the total number of rows, it would skip printing image in different number of rows. I'm suspecting that even if you construct InlineGraphicElement from bitmap loaded from an image, PrintDataGrid's renderer still skips printing image intermittently.
    I would very much appreciate it if you could create small project from my following code and verify this behavior. I'm at my wit's end in getting this printing to work.
    PrintImagesTest.mxml
    =================
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        minWidth="955" minHeight="600"
        initialize="initData();"
        viewSourceURL="srcview/index.html"
        >
        <s:layout>
            <s:VerticalLayout
                paddingLeft="20" paddingRight="20"
                paddingTop="20" paddingBottom="20"
                />
        </s:layout>
        <mx:Button
            label="Print"
            click="printClickHandler();"
            />
        <fx:Script>
            <![CDATA[
                import flash.utils.setTimeout;
                import flashx.textLayout.elements.InlineGraphicElement;
                import flashx.textLayout.elements.ParagraphElement;
                import flashx.textLayout.elements.SpanElement;
                import flashx.textLayout.elements.TextFlow;
                import mx.collections.ArrayCollection;
                import mx.printing.*;
                import mx.utils.OnDemandEventDispatcher;
                public var contentData:ArrayCollection;
                private var embeddedImages:ArrayCollection;
                private var numberOfImagesLoaded:int;
                public var printJob:FlexPrintJob;
                public var thePrintView:FormPrintView;
                public var lastPage:Boolean;
                private var textFlowNS:Namespace = new Namespace("http://ns.adobe.com/textLayout/2008");
                public function initData():void {
                    contentData = new ArrayCollection();
                    var page:int = 0;
                    for (var z:int=0; z<20; z++)    {
                        var content:Object = new Object();
                        content.srNo = z+1;
                        content.contentText =
                        "<TextFlow whiteSpaceCollapse='preserve' xmlns='http://ns.adobe.com/textLayout/2008'>" +
                        "<span>some text</span>" +
                        "<img width='53' height='49' source='assets/images/formula.gif'/>" +
                        "</TextFlow>";
                        contentData.addItem(content);
                public function printClickHandler():void {
                    convertToTextFlow();
                private function convertToTextFlow():void {
                    embeddedImages = new ArrayCollection();
                    numberOfImagesLoaded = 0;
                    for each (var contentElement:Object in contentData) {
                        extractImageInfo(contentElement.contentText);
                    if (embeddedImages.length > 0) {
                        loadImage(embeddedImages.getItemAt(0).source);
                    } else {
                        printData();
                private function extractImageInfo(contentText:String):void {
                    var textXml:XML = new XML(contentText);
                    var imageList:XMLList = textXml.textFlowNS::img;
                    for each (var img:XML in imageList) {
                        var embeddedImage:Object = new Object();
                        embeddedImage.source = String(img.@source);
                        embeddedImage.width = parseInt(img.@width);
                        embeddedImage.height = parseInt(img.@height);
                        embeddedImages.addItem(embeddedImage);
                private function loadImage(imageSource:String):void {
                    var loader:Loader = new Loader();
                    var urlRequest:URLRequest = new URLRequest(imageSource);
                    loader.load(urlRequest);
                    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
                private function imageLoaded(e:Event):void {
                    embeddedImages.getItemAt(numberOfImagesLoaded).bitmap = (Bitmap)(e.target.content);
                    embeddedImages.getItemAt(numberOfImagesLoaded).width = ((Bitmap)(e.target.content)).width;
                    embeddedImages.getItemAt(numberOfImagesLoaded).height = ((Bitmap)(e.target.content)).height;
                    ++numberOfImagesLoaded;
                    if (numberOfImagesLoaded < embeddedImages.length) {
                        loadImage(embeddedImages.getItemAt(numberOfImagesLoaded).source);
                    } else {
                        // all the images have been loaded... convert to textflow
                        buildContent();
                        printData();
                private function buildContent():void {
                    var contentIndex:int = 0;
                    for each (var contentElement:Object in contentData) {
                        if (hasImage(contentElement.contentText)) {
                            buildTextFlow(contentElement, contentIndex);
                            ++contentIndex;
                private function buildTextFlow(content:Object, contentIndex:int):void {
                    var textXml:XML = new XML(content.contentText);
                    var p:ParagraphElement = new ParagraphElement();
                    for each(var child:XML in textXml.children()) {
                        switch (child.localName()) {
                            case "span":
                                var span:SpanElement;
                                span = new SpanElement();
                                span.text = child;
                                span.fontSize = 10;
                                p.addChild(span);
                                break;
                            case "img":
                                var image:InlineGraphicElement;
                                image = new InlineGraphicElement();
                                image.source = embeddedImages.getItemAt(contentIndex).bitmap;
                                image.width = embeddedImages.getItemAt(contentIndex).width;
                                image.height = embeddedImages.getItemAt(contentIndex).height;
                                p.addChild(image);
                                break;
                    content.textFlow = new TextFlow();
                    content.textFlow.addChild(p);
                private function hasImage(contentText:String):Boolean {
                    var textXml:XML = new XML(contentText);
                    var imageList:XMLList = textXml.textFlowNS::img;
                    if (imageList.length() > 0) {
                        return true;
                    } else {
                        return false;
                private function printData():void {
                    printJob = new FlexPrintJob();
                    lastPage = false;
                    if (printJob.start()) {
                        thePrintView = new FormPrintView();
                        addElement(thePrintView);
                        thePrintView.width=printJob.pageWidth;
                        thePrintView.height=printJob.pageHeight;
                        thePrintView.printDataGrid.dataProvider = contentData;
                        thePrintView.showPage("single");
                        if(!thePrintView.printDataGrid.validNextPage) {
                            printJob.addObject(thePrintView);
                        } else {
                            thePrintView.showPage("first");
                            printJob.addObject(thePrintView);
                            while (true) {
                                thePrintView.printDataGrid.nextPage();
                                thePrintView.showPage("last"); 
                                if(!thePrintView.printDataGrid.validNextPage) {
                                    printJob.addObject(thePrintView);
                                    break;
                                } else {
                                    thePrintView.showPage("middle");
                                    printJob.addObject(thePrintView);
                        removeElement(thePrintView);
                    printJob.send();
            ]]>
        </fx:Script>
    </s:Application>
    FormPrintView.mxml
    ===============
    <?xml version="1.0"?>
    <mx:VBox
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:MyComp="myComponents.*"
        backgroundColor="#FFFFFF"
        paddingTop="50" paddingBottom="50" paddingLeft="50"
        >
        <fx:Script>
            <![CDATA[
                import mx.core.*
                    public function showPage(pageType:String):void {
                        validateNow();
            ]]>
        </fx:Script>
        <mx:PrintDataGrid
            id="printDataGrid"
            width="60%"
            height="100%"
            showHeaders="false"
            borderVisible="false"
            horizontalGridLines="false"
            variableRowHeight="true"
            >
            <mx:columns>
                <mx:DataGridColumn
                    itemRenderer="MyPrintRenderer"
                    />
            </mx:columns>
        </mx:PrintDataGrid>
    </mx:VBox>
    MyPrintRenderer.mxml
    =================
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXDataGridItemRenderer
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:bslns="com.knownomy.bsl.view.component.*"
        >
        <s:layout>
            <s:VerticalLayout
                paddingLeft="5"
                paddingRight="5"
                paddingTop="3"
                paddingBottom="3"
                gap="5"
                horizontalAlign="left"
                clipAndEnableScrolling="true"
                />
        </s:layout>
        <fx:Declarations>
        </fx:Declarations>
        <s:HGroup
            width="100%"
            gap="5"
            verticalAlign="middle"
            >
            <s:Label
                text="{data.srNo}"
                color="0x000000"
                fontFamily="Verdana"
                fontSize="10"
                />
            <s:RichText
                id="title"
                width="700"
                textFlow="{myTextFlow}"
                color="0x000000"
                fontFamily="Verdana"
                fontSize="10"
                />
        </s:HGroup>
        <fx:Metadata>
        </fx:Metadata>
        <s:states>
            <s:State name="normal" />
            <s:State name="hovered" />
            <s:State name="selected" />
        </s:states>
        <fx:Script>
            <![CDATA[
                import flashx.textLayout.elements.TextFlow;
                [Bindable]
                private var myTextFlow:TextFlow;
                override public function set data(value:Object) : void {
                    if (value != null) {
                        super.data = value;
                        myTextFlow = data.textFlow;
            ]]>
        </fx:Script>
    </s:MXDataGridItemRenderer>

  • Image not printed in SapScript, only after page break

    Hi,
    I have a problem in printing an image (stored as text) in a sapscript. The image was uploaded correctly from a TIF file in tcode SE78. The image contains a signature and I need to print it at variable positions within the form. That is I need to print it in the MAIN window. The image does not get printed when a page break occurs when outputing the text element containing the picture. If the page break occurs when outputing any (other) text, the image is printed correctly (after that text).
    Has anybody else encountered this problem? Could it be a sapscript bug?
    Thx in advance.
    Claudiu

    >
    > Looks like the last page is not called !!! I can see data only on one page and it shows page 1 of 1.
    >
    > "make sure ST_TEMP is filled with data" how do I do this ?? My program line node has the data filled in the internal table it_temp and the loop node has the data transferred to st_temp for every row. How can I debug the program lines code ??
    > > Have a break <username> in the program lines. and check it_temp has data in it.
    > "use a command and call the last page at end of the loop on internal table"...how to do this ?
    > > like program lines there is a "command line" do a little search on SDN for more info on how to use command lines for next page.
    >

  • Image not printing dynamically

    Hi all,
    I m trying to print the image in RTF template by the giving reference through XML data template but its not taking reference in RTF.
    When i am giving direct path of that image in web property of image its coming but when trying to get the path through profile value then its not printing anything .
    Could u please tell me how to do ?
    Thanks & Regards,
    Manoj

    It would be nice if you can share your file with us so that we can replicate the issue at our end.

  • HP Deskjet 5650 and Mac OS 10.5.8 Photoshop Images not printing

    For some reason my HP 5650 does not print images anymore. It will print a page from Firefox. It pretends to print a Photoshop image or a jpeg opened in Mac's Preview app but the page is blank. I can't seem to find a link to drivers or information.
    Power Mac G5
    OS 10.5.8
    Photoshop CS3

    Sure, you can have a job.  No pay, but you can answer posts here on these boards day and night!
    I am glad it worked.
    By the way, you can leave it connected to your Airport Express by Ethernet.  The router does not care how things are connected, wired can talk to wireless and v/v.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Placed AI images not printing correctly?

    I'm having a big problem getting placed AI images to print correctly. Other placed placed images seem to reproduce fine, but not the AI images. Any ideas?

    Let's keep this discussion in one thread, OK?
    http://forums.adobe.com/message/2080004#2080004

  • Suddenly!  Images not printing

    I'm designing a poster and have NEVER had this happen before. When I print none of my images will print. It worked earlier this morning, then all of a sudden they quit printing. Now that includeds jpgs, artwork from Illustrator, Photoshop. It could be something I mistakingly did but I have no idea since I've never seen this before.
    Other InDesign documents print just fine. So it has to be some switch turned on or off in this document only.
    Any help would be appreciated.
    Trudy

    I have it set up as follows:
    Print Graphics
    Send Data: All
    Output: Composite RGB
    Layer options:
    Show Layer
    Show Guides
    Layer is not locked
    Nothing checked in Attributes.
    Any other ideas?
    Trudy

  • Images not printing clear

    Hello, I'm sure this topic has come up before, but I did a search and can't find any relative articles; so sorry if I'm bringing up "old news."
    I'm having difficulty in getting images to print clearly with Pages. I'm writing a book on musical topics and am using Finale 2007 to create musical examples. I've tried saving them as gif, tiff, png, pict, etc. The results are always the same; when I place them on my pages document they look a little blurry, and when I print them they look even worse. If I open them in Preview they look fine, at all different zoom levels, so I know the images themselves are not necessarily the problem.
    Back in grad school (about 10 years ago) I had the exact same problem with Word; I somehow solved it, but I can't remember how!
    Any advice on how I can get my musical images to look and print clean and crisp will be greatly appreciated!
    Thanks in adavance!

    Hi @Anna44,
    Does the document look as you expect it to when you look at the print preview? Does the print preview and the actual print appear the same or different?
    This might be a formatting issue with Word, not with the printer. What happens if you print a document with images you are not posting in from Google?
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • EPS Images not Printing

    I have inserted an EPS image on each of four worksheets in an excel workbook.  When I print to the Adobe PDF converter printer I see the EPS images in print preview,  however when the multi-page pdf document is created I only see the EPS image on the first page.  Any ideas on how to correct the problem?

    It's sort of interesting.  When I print to my standard laser printers all of the images show in Print Preview and also print just fine.  When I use the adobe PDF printer I can also see the images in print preview however only the image on the first page shows up in the pdf document.  The images on the other pages are not viewable.  That is I have an exel workbook with four (4) worksheets (tabs) each worksheet has an EPS image inserted.  When I create a pdf only the image on the first page prints.  When I try to isolate by printing only the second or subsequent page those images do not show up inthe pdf document.

  • Why has part of an image not printed from pdf file?

    Hi, I have recently used Indesign to do the layout for a press advertisement. I exported the file as a High Quality pdf file to send to the printer. The logo on the advertisement  has not printed out correctly - the text part of the logo is showing but not the surrounding graphic. When you export and view the pdf file onscreen, everything looks fine. The graphic part of the logo is white - would this have anything to do with why it has not printed? What options should I have checked/unchecked to make sure the pdf prints exactly as it is seen onscreen or is it a problem with the logo file itself?
    I would appreciate any assistance.

    Gopalboopathy wrote:
    Hi
    if the logo is placed in front of the tint/backgrounds, if it's reverse the tint/background same color will be applied and the percentage of the color has been changed to 0%. it will works fine rather than changing the overprint/knockout. hopes it works.
    I'm afraid I don't understand waht you are trying to say here. The white in a logo should generally never be set to overprint. The only way I can think of to get any interaction between a backgorund and a white overprint is to use a blending mode, and that would affect the other colors as well, typically not what you want in a logo situation.
    This is a mistake in the construction of the original art, not a problem at can be fixed directly in ID.

  • Image not printing in Layout Editor

    I am using BI Publisher 11.1.1.6.
    I tried inserting an image in Layout Editor to display company logo.
    Followed the steps below.
    1. Click on Image icon in Layout editor.
    2. Select 'Field' Radio button, in the image URL: selected the field LOGO which
    comes from an SQL query.
    select value LOGO
    from Pro_Ent_table
    where section = 'SYSTEM'
    AND KEY = 'CORPORATE_LOGO_PATH';
    Value is: http://www.noug.org/clubs/165905/graphics/bip.jpg
    3. Click on insert in the Layout editor the logo can be seen.
    4. But when run the report, we are getting the following errors in different output formats.
    a. Interactive viewer - No error, blank screen had been shown.
    b. PDF - File does not begin with '%PDF-'.
    c. Excel - The report cannot be rendered because of an error, please contact the administartor.
    oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException
    d. RTF - The report cannot be rendered because of an error, please contact the administartor.
    oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException.
    Please let me know if more information is required.
    Thanks in advance

    Metadata. Check the files and strip it or save to a format that doesn't support it in teh first place. Perhaps the copy&paste messes up some stuff on that level such as DPI flags or stored printer data...
    Mylenium

  • Images not printing correctly when report is exported

    I work as part of a company that uses Crystal Reports to allow our clients to be able to print reports from our software. We are currently using Crystal Reports 10.
    We have a report set up with 4 images on the page that are loaded from a database. The images are set up to be a set size on the report and not to autosize. They are stored as jpg files.
    The actual images are larger than their counterparts on the form. In the particular case that this issue was seen one of the images was 1600 x 1200.
    The problem is that when the report is displayed in the print priview screen and printed to a printer it appears fine, however, if the report is exported, the report seems to get cropped instead of shrunk, so the report only ends up displaying the top left corner of each image rather than the whole image. I have seen this for both a PDF and and a Word Document export.
    Is this a know issue? How can this be fixed?
    The ability to export the reports rather than print them is an important feature of our product and is regularly used by our clients.
    Any assistance that you may be able to provide on this issue would be greatly appreciated.
    Also do any of the Crystal Reports developers visit these forums to assist with the issue, or is it mainly a community only forum? Just wondering.

    This is being seen when running the report from within our application. The report itself has been created and designed from within CR Designer v10. The actual report that the images are on is a on a subreport. The reason for this is that the main report needs to show a different number of images, either 1, 2, 4 or 6, depending on how many images are linked to the data in the database.
    We are using the CR SDK designed for use with Borland Delphi 7.

  • Why are the images not printing from InCopy? Why is the relink button in Links panel ghosted?

    I am having a problem with printing from Incopy. All stories are editable and that is working just fine. I am able to view the images although AD has set the graphics to not be editable yet I can still see them of course.
    My problem is upon wanting to print the layout. Getting a message that the image links are missing. I have not moved the original folders (they are all set up on the same level in one main folder). I am working remotely, layout based workflow via dropbox.
    My client would like to have the option to print layouts also initially. How can I relink the images if the "relink" button is ghosted. Can somebody help me please? I have tried doing a restart… Any ideas? 

    the-edmeister, you are a genious. I went to "view" then "toolbars" and de-selected "yahoo toolbar" and then moved the curser over my firefox page and it now works completely including the problem area (the top 3 cm of each screen). Thank you, thank you, thank you, thank you, thank you, thank you. You have no idea how good I feel know on this otherwise cold, windy and rainy day.

  • Pasted image not printing in Acrobat Pro 9

    I had no problems printing PDF pages with pated into them images in Acrobat 8. Now in version 9 I can still paste the image into the document, save doc and see it on the screen with no problem - but when printing the pasted image is gone. Any clues?

    Found that I must select "Document and stamps" in Print dialog box to have stamps and pasted images printed.

Maybe you are looking for

  • How do I do Export to Text? Using JSP

    Hi All, I need your help for doing Export to Text functionality. If I hit on "Export to Text" link, the file dialog will be open and I save the data. Is this possible through response? like response.setHeader("Content-type","application/text"); If no

  • Win 7 business and Mac Pro 2.8 quad core X 2 processor config /?compatible?

    Hi- wonder if windows 7 64 bit business can be installed on my machine. Upgrade advisor states that the driver for the device "Apple memory controller GPE event" is not compatible. I intend to install windows on a separate drive and boot either win o

  • Downloading Java

    I am trying to download java 5.0 to a Windows Vista computer and I keep getting an error message that states the file failed to create a destination file. Does anyone know what that means?

  • Itunes library will not share

    Hi, I am having trouble sharing the music library on my local network. It works from one user account, but from another it doesn't work. The settings, file sharing in preferences, itunes music sharing in preferences, etc, are all the same. Anyone kno

  • Oracle Personal Edition and SQL dev. tool

    I installed Oracle 10g Personal Edition on my laptop and want to use SQL Creator (SQL developer's tool/program - http://www.snefru.com/index.jsp) with it. I'm trying to setup my SQL developers tool to connect to my local Oracle database and there is