Read color information from images.

Can anyone explain getpixel() to me. I don't understand the manual with all it's Databuffer talk.
Can I load an image and get straight access to it's pixels or is there something i have to do to the image before i can get access to it?
Thank you.

You can use the java.awt.image.PixelGrabber to get the pixels. And with the MemoryImageSource it is possible to work on the pixel array, and have the component you draw the image on updated.
There is an example in the API for MemoryImageSource.

Similar Messages

  • Can Audit Vault be used for getting detailed read type information from the siebel database?

    Can Audit Vault be used for getting detailed read type information from the siebel database?

    Kramer wrote:
    saurabh wrote:
    check below cmd to see where archive are generated.
    SQL> archive log list
    And also check the following
    SQL> select flashback_on from v$database;
    Hi
    Here is the out put
    SQL>  select flashback_on from v$database;
    FLASHBACK_ON
    NO
    SQL>  archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     11
    Next log sequence to archive   12
    Current log sequence           12
    The flashback is not enabled. But archive log list shows archive destination is specified to use_db_recovery_file_dest.  And I checked the log_archive_dest_10 still empty
    Flashback off or on has nothing to do with it. 

  • Removing CMYK color information from cropmarks

    Hello!
    I need to run an Acrobat 6 preflight function for Black and Spot Color on a printed pdf (with crop marks, registration marks and file information) and in the report i always have CMYK used. The document uses only greyscale and spot color.
    I checked the pdf and only the printing marks added automatically by InDesign 4.0.5 have CMYK color information.
    Is it possible to change the color of these marks automatically, from anywhere in the application or with a plug in?
    Does anybody know a way to remove CMYK, as i need to send the preflight report to the client for checking.

    >It's a bit of a technical story, but you can do just about anything you want with the crop marks.
    But not, as I read it, change the color. I think that automatic crop marks are always going to be [Registration] color -- and in general they out to be. If you need marks that are K only, or K and your spot, I think you'll need to create them manually in the bleed area.
    That said, have you checked the output preview to see if any extra plates are actually being produced?
    The inclusion of marks implies to me that this is a stand-alone file, not an ad or similar material to be incorporated onto another page. Would there be a problem simply ignoring the C, M and Y plates when it's time to make film?
    Peter

  • Reading color pixels from a jpeg

    Please help me
    I would like to write a java program that imports a jpeg file and reads colors off the pixels from it (given the x, y)
    i know java, however, i am still a novice. can you stir me unto a direction, wher i can do this? awt? swing? fileio?
    if you have an idea of an algorithm ^_^ that would be even better!
    thank you!

    Image myJPG;
    BufferedImage bi = new BufferedImage(myJPG.getWidth(null),myJPG.getHeight(null),BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics();
    g.drawImage(myJPG,0,0,null);
    int rgb = bi.getRGB(pixelX,pixelY);
    //if you want, now you can do
    Color color = new Color(rgb);

  • Read header information from an e-mail that is an attachment to another e-mail

    I've written a macro using VBA code within Outlook 2010 that will extract header information from an e-mail and then save it to a csv file.  The code works well, but unfortunately, the header information I need is within e-mails that are sent to
    me as attachments.  Which means that I am opening the attachment and then running the macro to get the header information.  Is there a way for VBA to open the attached e-mail and read its header?
    Ideally, I would like to write code that will cycle through all of the e-mails in a folder, open the e-mails that are attachments and save off the header information.
    Any help or suggestions would be greatly appreciated.
    Thank you for your time.

    You should try the Exchange Development forum
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Reading Webservice information from ABAP Program

    Hi All,
    How to read a webservice information from a ABAP program ?
    Are there any webservices available in ABAP which can do this .
    Gopal.

    Hi,
    The following code will call the web service and fill the data into internal table which was received from the Web service. This code will send & Receive the data from ABAP to Webservice.
    Change the Header detail as per your Webservice.
    REPORT  ZWORKORDER.
    TYPES: BEGIN OF OUTTAB1 ,
      JOBCODE(20),
      COMPONENTCODE(20),
      ACCURATEHOURS(20),
      ACCURATECOST(20),
      LENGTH TYPE I,
       END OF OUTTAB1 .
    DATA: OUTTAB TYPE  TABLE OF OUTTAB1.
    DATA: TAB TYPE OUTTAB1.
    DATA: WF_O LIKE LINE OF OUTTAB .
    DATA: XSLT_ERR TYPE REF TO CX_XSLT_EXCEPTION .
    DATA: RLENGTH TYPE I,
          TXLEN TYPE STRING  .
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
    DATA: WF_STRING TYPE STRING .
    DATA: WF_STRING1 TYPE STRING .
    DATA: WF_PROXY TYPE STRING ,
          WF_PORT TYPE STRING .
    CLEAR WF_STRING .
    Form the input string to send the Input Data to Web service.
    CONCATENATE
    '<?xml version="1.0" encoding="utf-8"?>'
    '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    '  <soap:Body>'
    '    <GetWorkOrder xmlns="http://*******erica.net/webservices/">'
    '      <nWorkOrder>2</nWorkOrder>'
    '      <nDistributorCode>4871</nDistributorCode>'
    '      <model>HM400</model>'
    '     <type>1 </type>'
    '    </GetWorkOrder>'
    '  </soap:Body>'
    '</soap:Envelope>'
    INTO WF_STRING .
    CLEAR :RLENGTH , TXLEN .
    RLENGTH = STRLEN( WF_STRING ) .
    MOVE: RLENGTH TO TXLEN .
    CLEAR: WF_PROXY, WF_PORT .
    CALL METHOD CL_HTTP_CLIENT=>CREATE
      EXPORTING
        HOST    = '192.168.1.41' "'http://****merica.net/webservices'
        SERVICE = '8080'
        SCHEME  = '1'
      IMPORTING
        CLIENT  = HTTP_CLIENT.
    HTTP_CLIENT->PROPERTYTYPE_LOGON_POPUP = HTTP_CLIENT->CO_DISABLED.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~request_method'
        VALUE = 'POST'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~server_protocol'
        VALUE = 'HTTP/1.1'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~request_uri'
        VALUE = '/service/accurate/workorder.asmx?'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'Content-Type'
        VALUE = 'text/xml; charset=utf-8'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'Content-Length'
        VALUE = TXLEN.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'SOAPAction'
        VALUE = 'http://********merica.net/webservices/GetWorkOrder'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_CDATA
      EXPORTING
        DATA   = WF_STRING
        OFFSET = 0
        LENGTH = RLENGTH.
    Send the Input Data to Web service.
    CALL METHOD HTTP_CLIENT->SEND
      EXCEPTIONS
        HTTP_COMMUNICATION_FAILURE = 1
        HTTP_INVALID_STATE         = 2.
    Receive the Input from Web Serice.
    CALL METHOD HTTP_CLIENT->RECEIVE
      EXCEPTIONS
        HTTP_COMMUNICATION_FAILURE = 1
        HTTP_INVALID_STATE         = 2
        HTTP_PROCESSING_FAILED     = 3.
    CLEAR WF_STRING1 .
    WF_STRING1 = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    DATA: LENGTH TYPE I.
    LENGTH = STRLEN( WF_STRING1 ).
    DATA: VALUE_FIELD TYPE NAME_KOMP.
    DATA: VALUE TYPE REF TO DATA.
    FIELD-SYMBOLS: <FS_CONVERTED_DATA>.
    DATA: TAB1 TYPE TABLE OF STRING.
    DATA: FROM_LENGTH TYPE I VALUE 1.
    DATA: TO_LENGTH TYPE I.
    DATA: DIFF TYPE I.
    DATA: START TYPE I VALUE 1.
    DO.
    JOBCODE.
      SEARCH WF_STRING1 FOR 'JobCode=' . "STARTING AT START .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 8.
      SEARCH WF_STRING1 FOR 'JobDescription=' ."STARTING AT START ..
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-JOBCODE.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
    COMPONENT CODE
      SEARCH WF_STRING1 FOR 'ComponentCode=' .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 14.
      SEARCH WF_STRING1 FOR 'ComponentDescription=' .
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-COMPONENTCODE.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
    AccurateHours
      SEARCH WF_STRING1 FOR 'AccurateHours=' .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 14.
      SEARCH WF_STRING1 FOR 'AccurateCost='.
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATEHOURS.
      TO_LENGTH = DIFF + TO_LENGTH.
    AccurateCost
      SEARCH WF_STRING1 FOR 'AccurateCost='.
      FROM_LENGTH =  SY-FDPOS.
      FROM_LENGTH =  FROM_LENGTH + 13.
      SEARCH WF_STRING1 FOR '/>'.
      TO_LENGTH = SY-FDPOS.
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATECOST.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
      APPEND TAB TO OUTTAB.
    ENDDO.
    WRITE: (10) 'JOBCODE'.
    WRITE (20) 'COMPONENTCODE'.
    WRITE (30) 'ACCURATEHOURS'.
    WRITE (40) 'ACCURATECOST'.
    LOOP AT OUTTAB INTO TAB.
      WRITE:/ TAB-JOBCODE .
      WRITE (20) TAB-COMPONENTCODE.
      WRITE (30) TAB-ACCURATEHOURS.
      WRITE (40) TAB-ACCURATECOST.
    ENDLOOP .
    It is better to create a proxy, it then puts a level of abstraction between in that coding. All you need to do is then access the proxy class.
    Besides that i think you can do it by configuring the ITS and calling the webservice by means of using BSP applications in ABAP
    <b>I believe you need to create a proxy in order to consume your web service.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
    Reward points</b>
    Regards

  • Command: extract color pallette from image

    Hiyas,
    I remember being able to run a command, proably an extension,
    to extract all the colors in an image, and paste them nicely in a
    what looked like a color sample format in a new image. Essentially
    it was describing all the colors in the image, with a square of
    color, along with the hex values of each color.
    I can't remember what this command is, or where it can be
    found.
    Can you help?
    Thanks,
    Steve

    Doigy wrote:
    > Hiyas,
    >
    > I remember being able to run a command, proably an
    extension, to extract all
    > the colors in an image, and paste them nicely in a what
    looked like a color
    > sample format in a new image. Essentially it was
    describing all the colors in
    > the image, with a square of color, along with the hex
    values of each color.
    >
    > I can't remember what this command is, or where it can
    be found.
    >
    > Can you help?
    >
    > Thanks,
    >
    > Steve
    >
    Commands > Web > Create Shared Palette will create a
    color table from a
    folder of images
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • How to read my information from a html file?

    Hi
    I saved an html file from a website.
    How can I read my information (For example the first URL) from the html file?
    following code reads line by line:
    using (StreamReader reader = new StreamReader(Application.StartupPath + @"\x.htm"))
    String line = String.Empty;
    while ((line = reader.ReadLine()) != null)
    MessageBox.Show(line);

    How about this...
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Diagnostics;
    namespace ReadFromHtml
    class Program
    static void Main(string[] args)
    using (StreamReader reader = new StreamReader(Environment.CurrentDirectory + @"..\..\..\page1.html"))
    String line = String.Empty;
    while ((line = reader.ReadLine()) != null)
    if (line.Trim().StartsWith("<a"))
    Console.WriteLine(line.Trim());
    break;
    Console.ReadLine();
    <!DOCTYPE html>
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <title>mobile craigslist</title>
    </head>
    <body>
    <h1>PAGE1.HTML</h1>
    <hr />
    <a href="http://mobile.craigslist.com">mobile craigslist</a>
    <hr />
    </body>
    </html>
    UML, then code

  • Reading metadata to - from image files

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

  • Reading PFCT information from the buffer

    Hello All,
    We have a requirement where we need to put some authority checks on Partner Function deletion for a Shipto Party (Relationship Category CRMH02). We tried to put the check in DCHCK event, but I am not able to read PFCT from buffer unless the sales area has already been selected.
    Please let me know if u have an idea about any such API which can read the buffer data for PFCT even when the sales area is not selected
    Rgds
    Priyanka

    Thanks,
    Yes I can use the java.util.SimpleTimeZone to set and manipulate the timezone
    information, but my problem is:
    I need a technique that allows me to get the time zone of the machine(browser)
    from which the request to my application is sent from.
    The same way you do this with an HttpServletRequest object:
    request.getLocale(); What do you do if you need the the timezone too?
    Message was edited by:
    Mauvv

  • Is there a way to use EXIF information from images in Muse?

    I use Lightroom to manage my images. In Lightroom, I enter Caption metadata. (In the Lightroom Library, I enter data in the Caption field of the Metadata section.) Now I'd like use that Caption data to create an ALT tag in Muse. Is there any way to do that, short of copying the text from Lightroom and pasting it into Muse?
    Here's why that wouldn't work for me. I have hundreds of images on my site. When I export images from Lightroom for my Muse site, I rename them. The names are generated by LR, so they're not consistent each time I generate them. Over in muse, that means I have to re-enter ALT tags every time I generate a new version of my slide show -- even if the images are the same. So what I'm looking for is a way to have Muse take the Caption data from each image's EXIF Metadata and use it to generate the ALT tag.
    Can anybody think of a way to do this?
    Thanks,
    Jonathan

    Unfortunately there is no way to do that current stage , you would need to add the tags manually.
    Thanks,
    Sanjit

  • Read System Information from the Client

    Hi,
    i am looking for a java native interface that allows me to read the client's system information like it can be done with the sigar lib.
    http://support.hyperic.com/confluence/display/SIGAR/Home
    Does anyone know if there are alternative native libraries available?!
    Thanks in advance,
    Patrick

    I'm doing exactly the same in both projects.The OS loads the library into the process space.
    You know it works in java. Thus it means specifically that it is an environment problem. It is not a java problem and it is not a library problem.
    The problem is that the library fails to load.
    General reasons for loading failures. There might be others.
    - It isn't a library. Can't be this because you got it to work already.
    - It has dependencies, other libraries, that don't exist or are not in the shared library path.
    - It isn't in fact the same as the other webstart app. Different location, different coniguration, permissions problem, something else.

  • Not reading profile information from cookies..?

    Hi All,
    i' working on soflogin. When i loggedin to site, it is sending 3 cookies to browser, each for sessionId, profileId, and hashKe. Upto here it is working well. But , when i restart the browser without loggin out, it is not able to pick the cookies from browser, resulting in failure of the soft login. I also wrote the code to consider cookies for softlogin as follows,
    <dsp:droplet name="Compare">
              <dsp:param name="obj1" bean="Profile.securityStatus" />
              <dsp:param name="obj2" bean="PropertyManager.securityStatusCookie" />
              <dsp:oparam name="lessthan">
                   <!-- New user or unrecognized member -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="false" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="equal">
                   <!-- User auto-logged in with cookie -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="true" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="greaterthan">
                   <!-- User logged in with login/password -->
                   <c:set var="showLoginForm" value="false" scope="request" />
              </dsp:oparam>
         </dsp:droplet>
    And based on the value of showLoginForm variable , i'm displaying the loginPage.. But it is still showing the login page with empty fields instead of login with previous loggedin user login value.. (expected result)
    Thanks,
    VishnuVardhan

    Before reading these values, check in the browser if you have the cookies present before and after restart.
    Otherwise you need to look at the configurations to set the cookie.
    Peace
    Shaik

  • Reading Session information from Cookie MYSAPSSO2

    Hi All
    I have a requirement where i need to get the portal session in my webdynpro component.
    My portal runtime and webdynpro runtime are different.
    My both runtimes are configured for accepting sap logon tickets.
    I observerd that  portal is sending the cookie MYSAPSS02 to webdynpro when ever a webdynpro component is called from portal.
    I also read that this cookie contains the portal session info.
    I want to read the session value from this cookie. How can i do this?
    Thanks in advance
    NagaKishore

    I have post the similar problem.
    here is the url /thread/40387 [original link is broken]
    But i still haven't worked it out
    hope i'ts helpful for you.

  • Read/write calendar information from outlook/yahoo server

    Hi,
    my requirement is read calendar information from outlook/yahoo server.
    pls tellme any opensource (java) available for this.pls any sites theoratically/practically explained on this.
    pls help me on this.
    regards
    karthik

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

Maybe you are looking for

  • ACS 'Password Change Rule' doesn't work with telnet

    Hello: I am trying to configure that users have to change their passwords when they enter to a network appliance the first time they log in. I have an ACS 4.0 appliance, the option "Disable TELNET Change Password against this ACS and return the follo

  • Export file size help...output seems way too big

    I have a 12 minute movie with audio, video and stills in it. Currently when I export it the file is 865MB...  I need it to be less than 100 with decent quality.  It is a tutorial video that will be downloaded from the web. Can you please give me some

  • Average Costing To FIFO

    Dear All, I am currently working in a implementation project. My client is working on Average Costing Inventory Org but they want report to be in FIFO basis Report Should show : Item Name, Item Desc, Sub Inventory, UOM, Opening Stock of that period w

  • XI and BAPI

    Hi, I'm just a beginner with XI. I've got such scenario to develop. Could anyone help me ? 1. After completing production in external system I'm receving LOIPRO.LOIPRO01 message from R/3 system with status I0045. (I mean LOIPRO with status I0045 is b

  • Calendar Server 1.x to 3.x Migration

    I need to migrate my Calendar Server 1.x to Calendar Server 3.5. How do I export my calendar user information? <P> Use CTDB2LDIF.This information is available in the Calendar Server 3.5 ReadMe. <P> SYNTAX ctdb2ldif -n node-ID [ -host hostname ] [ -p