How to access individual pixels in a frame...

Hi there,
I am newbie in java and i basically want to know how to access individual pixels in the frame so that i can change the RGB color values of some definite block of pixels. I did have a look at the RotationEffect java example at
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/RotationEffect.html but couldnt get much information from that.....If anybody has some information on this pls lemme know at the earliest...Regards, Kunal

The source code examples at http://www.exactfutures.com/index02.htm may help.

Similar Messages

  • How to access the handle of  the Frame window ?

    How to access the handle of the frame window through out the application ?. I want to display an alert box, while I click the fifth inner child component of the Frame . I am using Dialog Class for the alert box, I have to pass the frame handle to the Dialog constructer, I am getting the handle of the frame by getParent().getParent()......getParent().. But can any one suggest any better solution.

    If you application extends Frame or JFrame, you could simply refer to "this", or if you create a global or final Frame object that you use as your "top-level" component, you could refer to it this way. Additionally, if you're ever in a situation where you really need to go all the way to the top through n levels of components, I believe you could always do something like this...
    // assume myContainer is the "child" component that you're on, and you want to find its top-level parent
    Container c = myContainer;
    while (c.getParent() != null) {
         c = c.getParent();
    }

  • Backing up your mac to external drive and how to access individual files

    I have managed to back up the information on my computer to a external drive as a whole but need to access different files, projects so that i can then delete them from my computer to save space. how do I access the different files on my external drive???

    You CAN access the backed up file from a time machine backup. Just attach the external drive you used for time machine backups to your notebook and then Start Time machine (First under preference - slide the switch to "off" so it does not start an automatic backup right then) Once you open the backup files in Time Machine on your Notebook you can navigate back to older backups to get to that file. (Even if you've deleted it on your notebook after having backed up that file)
    NOW - I would recommend having another back up, like the other poster, before you delete the file from your notebook. Redundancy is a good thing. The way time machine works is that over time as your external drive begins to fill it will delete the oldest backup(s) and you could potentially loose that file forever.
    I have two other back ups - I have a Super Duper (exact) cloned version of my MBP on a second ext. hard drive. Now, this would not work for you since you want to delete that file from your MBP. Since it is an exact copy if you delete that file from your notebook and then go back to do a back up with Super Duper it would delete that file on the cloned version on your ext. hard drive (too keep them exactly the same). There may be other settings to avoid this, but I generally just use it as a clone. I also have a 3rd mobile hard drive where I set up folders for files I want to keep forever and just drag and drop those onto this drive.
    You can cut down on having too many ext. drives if they have a big enough capacity by partitioning them in Disk Utility. (i.e one big drive with a partition for Super Duper and another for standard backups)
    Hope that helps a bit.
    Thanks.
    Mark

  • Movie Themes: How to access individual components

    After playing around with PRE7's "Themes" functions (which I gather is also called "instant movie"?), and unbundling the instant movie into individual, editable elements, I was wondering if there's a way to access the sound effects and graphics used by instant movie.
    For example, I used the "Extreme Sports" theme. After unbundling the instant movie, some of the video transitions I recognized from the standard Effects or Transisions folders of the Edit panel.
    But other video effects (e.g. the "opening/closing credit" moving graphic) and sound effects (e.g. "explosion" or "glass shattering") I don't remember seeing anywhere.
    Am I missing something, or are some of the video/audio effects that are only available by applying then unbundling the instant movie?
    Thanks!!
    Ed

    Not yet.
    I first wanted to make sure there wasn't some way in PRE to do it, like a "sound effects" tab or something I wasn't seeing.
    If it turns out that there isn't, then my next stop was certainly to start poking around to see if I could import them as distinct items.
    If that's the case, I may just create my own "effects" folder and import everything I can find. Kind of create my own effects tab, in effect.

  • How to access layer pixel data?

    I am new to the Adobe CS extension SDK.
    Is it possible to access image data from an extensions as an array?
    In the API reference I did not find anything like that.

    What app?
    The CS SDK is not much more than a proxy for the scripting interface and a way of building UIs around that.
    You'd get image data the same way you'd do it with classic ExtendScript scripting.
    Harbs

  • How to access the jpanel and other components on click of a button

    hi ,
    need help,how to access the components of a frame onclick of a button ,if the actionPerformed() is written in a seperate class.
    in my code
    button.addActionListener(new Xyz());
    Xyz is implementing the ActionListener.
    in actionPerformed() i want to access the components in the frame.
    thanks.

    public class Xyz implements ActionListener{
      JFrame frame;
      Component[] comps;
      public Xyz(JFrame f){
        frame = f;
        comps = frame.getContentPane().getComponents();
      public void actionPerformed(ActionEvent e){
        // access elements in comps array
    button.addActionListener(new Xyz(this)); // if 'this' is a JFrame in question

  • How to use JMF (pull)datasource class to access individual video frames?

    Is there anyway of using JMF datasource or pulldatasource class to access individual video frames?
    Edited by: pakkito on Apr 9, 2008 3:15 AM

    Is there anyway of using JMF datasource or pulldatasource class to access individual video frames?
    Edited by: pakkito on Apr 9, 2008 3:15 AM

  • How to access the Text Frame, when we use scrollable frame,

    Hi Friends,
    How to access the Text Frame, when we use scrollable frame,
    Thank you,
    [ Nav ]

    That's the same question:
    how can I access something (a page item) on a page…
    Answer: you need something unique in that object you can get a handle on.
    Or you use the selection a user of your script is doing and work with that selection…
    A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
    So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
    In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
    When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
    If you have more than one "scollable frames" you need a second unique identifier for the particular object.
    That could be nearly any property.
    Keep in mind, there is no "scrollableFrames" collection in the DOM !
    Uwe

  • How do you access individual ringtone sound files?

    Hello,
    Does anyone know how to access the individual ringtone sound files on a Nokia E7 running Symbian 3 - Belle?  I'd like to download them off of the phone.
    Thanks,
    Dave

    DjDave5 wrote:
    Does anyone know how to access the individual ringtone sound files on a Nokia E7 running Symbian 3 - Belle?  
    You will find the answer to your query in this screenshot, but as this is a manufacturer's sponsored forum please do noit expect me to elaborate:
    Happy to have helped forum with a Support Ratio = 42.5

  • How to get MS Access DB connection in struts frame work?

    Hi All,
    I am trying to get MS Access db connection in struts frame work .
    I am using websphere.I don't know whether i have to set any configuration in the WSAD.
    In struts-Config.xml i am having this mapping
    <data-source
    type="org.apache.commons.dbcp.BasicDataSource"
    key="userDB" >
    <set-property property="driverClassName"
    value="sun.jdbc.odbc.JdbcOdbcDriver" />
    <set-property property="url"
    value="jdbc:odbc:localhost:9080/u:/EmpDetails.mdb" />
    <set-property property="username" value="" />
    <set-property property="password" value="" />
    <set-property property="maxCount"
    value="4" />
    <set-property property=" minCount="
    value="2" />
    </data-source>
    In the action class i am having this code
    dataSource = getDataSource(request, "userDB");
    conn = dataSource.getConnection();
    stat=conn.createStatement();
    result1=stat.executeQuery("select * from emp");
    While trying to execute this code i am getting this error
    java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted
    any idea why this error is occuring?
    Thanks in advance
    Janaki.

    Yes i know that but i only wanted to know how i will connect MS Access database with Java desktop Application in NetBeans

  • Getting at individual pixels...

    After and individual frame has been rendered, i'd like to get at the individual pixels and alter them before the frame is displayed. By overriding the canvas3d's postRender() method, i can add my own code into the rendering loop, but does anyone know how i can get the individual RGB values of the frames pixels to alter them?

    Over-ride the existing canvas3d, and specify your own preRender method. Something like:
    public class MyCanvas3D extends Canvas3D
    public MyCanvas3D
    super.Canvas3D()
    public void preRender()
    }

  • How can I capture a single video frame and save as an image in PS CS6 Extended?

    I have checked similar posts on this subject, but I have a problem doing this:
    I "File>Open" a video clip [.m2ts file type] into PS CS6 Extended.
    PS sets the "Pixel Aspect Ratio" for "HDV 1080/DVCPRO HD 720 (1.33)"
    PS then warns of "Pixel Aspect Ratio Correction" for preview purposes only, and that it should be turned off for maximum image quality.
    I advance the "Timeline" to the specific frame I wish to capture.
    I simply "File>SaveAs" for a JPG image - as has been suggested.
    Both the On-screen and saved images are grossly pixelated at 1440 x 1080.
    Furthermore, the saved image is an incorrect aspect ratio - regardless of how I have the "Pixel Aspect Ratio Correction" set.
    It produced a jpg image size of 1440 x 1080 at 635 KB.
    I clearly do not know what I am doing...
    Have I missed a process - either with the file type I open, or once opened in PS CS6 and set to the desired frame?
    Adobe Bridge will display each frame in a high-quality preview - which I could be happy with, but found no capture/save tool there.
    I went back to the software that came with the video camera and saved a frame image from the video clip just fine.
    It produces a jpg image size of 2304 x 1296 at 2.63 MB with the correct aspect ratio.
    After you stop laughing ... can you let me know what I really need to do to get the correct result in PS CS6?

    Place the playhead on the frame you want as a still. Then in share window choose location Save Current Frame. You can then select options such as Jpg, PNG etc.

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use sounds in AS3/Flash. I am using Flash Pro CS6, but I can't seem to figure out how to access, control (play, stop, etc) sounds embedded in an external SWF loaded into the main SWF.
    It's easy to control them when embedded on the main swf. However, on an externally loaded SWR, I get all kinds of errors. For this app, I really need to embed them in the external SWF.
    I read several solutions, but none seem to work.
    I embed the sound an mp3 file called soundSegment1.mp3 using Flash CS6 import tool and then open the actionscript properties panel on flash to select the class name: SoundSegment1. Then I edit the class code and create a file called SoundSegment1.as and it's saved right next to my document class main.as in the same directory. The code of the SoundSegment1 class looks like this:
    package  {
        import flash.media.*;
        public class SoundSegment1 extends Sound
            public function SoundSegment1 ()
                // no code in here
            public function playSound()
                var soundSegment1:Sound = new SoundSegment1();
                var channel:SoundChannel = soundSegment1.play();
    Then, in my main.as, I have done several attempts to play this sound such as:
    var fileLocation:URLRequest = new URLRequest(SWFToLoad); loader.load(fileLocation); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener); loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 
    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work {      loader.content.soundSegment1.playSound(); // doesn't work.  }
    I get:
    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.
    or, I also read that I should be able to do something like this anywhere in the Main.as file:
    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.
    I also tried on the completeListener:
    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class; var theSound:TheClass = new TheClass();
    theSound.play()  //doesn't work either.
    I get:
    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()
    I am stuck and I really need to get this to work. I would be genuinely grateful for your help.
    Thank you in advance for any help provided. I really need to get it to work, because I can't simply embed them in the main SWF or load them individually externally one by one.
    Thanks again!

    THANK YOU!
    I think your code may be over my head though. I think you are using an anonymous function which is not something I am familiar with (but I want to learn about if it's useful).
    I also don't know where the classS came from. I see that it's a parameter sent along with the event, but I don't really see where that came from.
    Someone at: http://www.kirupa.com/forum/showthread.php?305098-Playing-a-embedded-sound-in-an-external- swf&p=2658098#post2658098
    Is showing what seems to be an easier solution, but my problem there is I can't access the source file of the "child" swf....  ayayay.....
    I am going to tinker with your solution and see if it gets me anywhere. Thanks so much for your help again.

  • How to generate individual HTML files from linked help?

    Hi folks,
    I'm trying to figure out how to generate individual web pages - based on heading types - from a help project this is linked to a FrameMaker book.
    I'm linking to the FM book, rather than importing, because the import process ruins my graphics. So, I know how to create individual web help pages using the import process; but that's not an option for me. (The graphics issue is a whole other discussion, which I've since given up on.)
    So, I'm using TCS 3.5 (RH9 and FM10). I've successfully linked to the FM book. Each topic represents a complete chapter and includes a single Heading 1 for the title and several Heading 2's. Again, these are all in the same help topic because I'm linked to the FM book.
    What I want to do is generate the web help so that new web pages (files) are created. In other words, I want breaks before each Heading 2. I want the resulting web pages to be named based on the Heading 2.
    Is this possible?
    Thanks for reading,
    Tom

    I’m not sure I understand the problem (I’m using FM 10, RH9, TCS3):  You can adjust .isf and all Conversion/CSS mapping, etc settings for an existing project (Linked or Imported) at:
    File > Project Settings > FrameMaker Document > Edit Conversion settings for FrameMaker documents: (click Edit button).
    Then, Go to FrameMaker Settings > Paragraph > Heading 1 etc. and click the box for Pagination.
    What I don’t know is if you have to re-do your linking process from scratch to do your pagination settings right the first time (like create a new project with your Frame docs, which shouldn’t be hard to test if you have saved your CSS, Master Pages etc), or already have an .isf file  with proper settings that you can specify at time of first import/linking. I already had these in place when I set up my linked project of a Frame book with 13 chapters – 350 pages – resulting in over 300 separate HTML files/topics (set H1, H2, and H3 levels to paginate). I don’t know if you can change these things post-linking, but it can definitely be done!
    There is definitely no reason to have to have an entire FM chapter as one topic in RH. You may have to create a new project to achieve your desired results, I am not sure.
    I hope this is helpful. Regarding RH ruining your images, I know what you mean. Through a painstaking process of research, trial, and error, I found that these Image options in the Conversion Settings produced the best results for me, though not as good as “ideal:”
    ·         Check the box for “Use Distiller to Generate Image”
    ·         Leave the “Do Not Regenerate Images” and “Preserve 3D Images” boxes unchecked
    ·         Under Preferred Dimensions: Check “Maintain Aspect Ratio” and check Width and Height – Set both to 0pt. (*This one was a key tip.) Leave “Scale” unchecked. (Scaling seems to do terrible things in RH.)
    ·         I left the Max Dimensions settings unchecked.
    ·         Set my personal preferences for margins (2pt all sides) and borders (solid, gray, 1 pt)
    ·         Under Advanced, Default format of PNG with color bit depth of 24. My graphics are all screenshots, so this is the reason for this in my instance.
    Regards,
    Virginia

  • How to access SPECIFIC camera attributes tree (camera controls) located in MAX with Labview?

    How to access specific camera attributes tree (camera controls) located in MAX with Labview?
    I want to be able to access frame, trigger and grab properties. Does anyone know?
    Thanks.
    /Peter

    Please see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-Node/m-p/1642950/highlight/false#M590168
    Matt
    Product Owner - NI Community
    National Instruments

Maybe you are looking for