Dynamic drawing on frames

Hi,
I would like to draw dynamically on displayed frames of a video. The program stops the video and lets the user draw. A previous "Draw on video" topic used an Effect to do this. Because the video is stopped, this won't work.
Best would be using the setGlassPane() method. However, the heavyweight nature of JMF viewer prevents this from working (on Windows with performance pack). After much experimentation, I have abandoned this approach.
Is there a way to get the current frame's contents and interact with the video frame just as you would with anything drawn in awt? Does the video frame have a Graphics object that is accessible? Can it be replaced with one that does?
In the extreme case, I imagine the video going to an invisible buffer. This buffer is converted to an Image that displays. You can draw all over it. Then, the next frame is processed in a similar fashion. I can use standard methods to make the drawing dynamic.
I will appreciate any insights and suggestions.
Harry

You can actually try using a lightweight component for your video by adding a line like this to your code:
Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));
See http://java.sun.com/products/java-media/jmf/2.1.1/solutions/SwingJMF.html for all the cool details.
Daniel Roth

Similar Messages

  • After a few minutes on certain websites, firefox stops drawing new frames without a mouse movement to force a redraw

    After having certain pages open for between 5-15 minutes (at the most) such as youtube, facebook, or myspace (these are the sites that consistently cause it, but are not limited to them.) The browser no longer draws new frames without the mouse being moved and calling the draw function through it.
    The issue started a month or two ago. There had been no new plugins or add-ons installed for at least another month prior.
    The closing X in the top right also becomes non responsive (though it will light up.) The browser can be closed through the right click menu in the task bar, along with the closing X in the thumbnail preview.
    Program and window completely freeze when attempting to move the window for around 10 seconds, then move to the location designated.
    Other browser have no issues.
    system: Windows 7 Ultimate 64 bit.
    6GB RAM 1600Mhz
    core i7 920
    1.5TB free space in C drive
    currently installed plug-ins are:
    Acrobat 9.3.0.148
    Java Deployment Toolkit 6.0.210.7
    Java Platform SE 6 U21 6.0.210.7
    Mozilla Default Plug-in 1.0.0.15 (disabled)
    Shockwave Flash 10.0.45.2
    Shockwave for Director 11.5.7.609
    Silverlight 3.0.50106.0
    Unity Player 2.6.1.31.223 (disabled)
    Windows Live Photo Gallery 14.0.8081.709 (disabled)
    Yahoo Application State Plugin 1.0.0.7 (disabled)
    Extensions:
    AVG Safe Search 9.0.0.855
    AVG Security Toolbar 4.002.023.004
    Java Console 6.0.18 (disabled)
    Java Console 6.0.21
    StumbleUpon 3.73
    XULRunner 1.9.1 (disabled)
    Zynga Toolbar 2.7.1.3 (disabled)
    Only default Theme installed.

    Podcast (original): http://council.cio.com/podcast/temp.mp3
    Podcast (re-encoded by iTunes): http://council.cio.com/podcast/temp3.mp3
    Music MP3s that aren't working for me:
    http://council.cio.com/podcast/findyouregone.mp3
    http://council.cio.com/podcast/findyourehere.mp3
    http://council.cio.com/podcast/youvideoversion.mp3
    Music MP3 that is working:
    http://council.cio.com/podcast/twoareone.mp3
    (Oh, and ignore my comment earlier that this mp3 stopped working. I got confused back there with all the various tests... This file does play fully. The player also waits until the file is fully downloaded before starting to play... As opposed to the others where the player starts and ends playing before they are downloaded completely.)

  • Drawing a frame around exisisting layout objects

    I am using reports 10g(9.0.4). I am trying to draw a frame around existing objects but the objects wont appear in the frame in the object navigator. I am trying move backwards and send backwards on the frame but it is not working.
    Whats is the method to use?
    Lewis
    Message was edited by:
    lewismak2000

    of course, send to back shd work.
    anyway, try creating the frame first and draw ur items inside that...

  • Convert my dynamic Drawing (created in a Flash Dialog using AS 3) into the .DXF and .DWG form

    Hi ,
    I want to convert my dynamic Drawing (that I created in a Flash Dialog using AS 3) into the .DXF and .DWG format.Is there any way by which I can give the export functionality on the flash page so that the dynamic drawing that created in flash code will export into .DXF and .DWG format.
    Please Help
    Thanks,
    Simon

    There's no automatic way to convert to AutoCAD formats... you will need to write your own. You will need to figure out the formats of .dxf and .dwg and then probably use ByteArray to output. It will not be a trivial task.
    Hi,
    Can you please give me some example for this?
    I have used AlivePDF to convert my Diagram to PDF but it create a Raster image in PDF and all vector data is lost.
    I want to convert this PDF to .dxf and .dwg format using any tool. but not found any way around.
    Thanks!!

  • How to draw a shape to Panel instead of draw to Frame

    I have a Frame and add a Panel into this Frame. I want to draw a shape to Panel instead of draw to Frame. how do i do?

    You can do two different things:
    1) For temporary drawings that will disappear when the component is repainted, you can use getGraphics() on the Panel, draw on the Graphics, then dispose the Graphics.
    2) For persistant drawings, subclass Panel and override the paint(Graphics g) method. Anything in there will be painted along with the panel. Start with super.paint(g); when you override for good coding practice.

  • Dynamic Window or Frame ??

    Hi all, i want to make an application with a dynamic window. For example in powerpoint there are some effects.
    what i want to do, window will open slowly from zero to full pozition at the right side of screen.
    i looked into lots swings, but i couldnt find anything
    is there a way to do something like that???
    thanks.

    import java.awt.Dimension;
    import javax.swing.JFrame;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    public class NewClass extends JFrame{
        public NewClass() {
        setPreferredSize(new Dimension(100, 100));
        pack();
        show();
    public static void main(String args[]){
        new NewClass();
    }for example this code is a simple jframei how can a this frame start at right side of screen slowly.
    but not move whole frame. it will open from zero size to max.
    i want to use jframe or window not jdialog.

  • Add panels dynamically to a frame

    I have a main class called Mainframe. I want to be able to add panels dynamically to this. Lets take for example that I have 2 objects. The first one is called random1 and the other one is called random2. All they do is generate random numbers. I want the 2 of these to take up half the screen.I want random1 to be at the top with the remaining fitting in under them. I want this to be able to support whatever number is present at runtime.
    e.g.
    .MainFrame .
    .          Number:24          .     
    .          Number:66          .
    How can I achieve this?

    Please! no sarcasm, You arent giving qwwerty a chance to post his code.
    I'm sure he's got a lot to offer and just waiting for the right opportunity.
    Ok qwwerty, when you're ready....

  • Flash player 11.0 flickers/doesn't draw whole frames

    Hello,
    I'm currently running Flash Player 11.0.1.152 on Arch Linux 64-bit, with nVidia driver 285.05.09. I'm coming across a lot of Flash videos where terrible flickering occurs. The frame rate is very good but it seems like some of the frames themselves are only partially drawn (you can see a screenshot here**) which makes the whole video flicker terribly. I've also seen it places like here (particularly the loading screen, but you can also see it to a lesser extent in the video on the front page). Places like Youtube and Blip.Tv work fine.
    Fiddling with hardware acceleration or quality settings doesn't fix it, however simply opening the settings box has a temporary effect: the flicker disappears entirely for as long as the box is there. Upon closing the settings box, flicker immediately resumes. Scrolling the box mostly offscreen resumes flicker, too.
    I primarily use Firefox 7.0.1, but there's no change when using Chromium.
    After upgrading to 11.2 the video plays silky smooth, however I've found the beta is still too unstable for general use, so I can't simply use that. Is there something I can do to fix 11.0 while waiting for the beta to stabilize?
    I've also included a paste dump of my GLXinfo if that will help in any way.
    Thanks for your time!
    **Note that if you wish to check the video itself, the flicker isn't immediately apparent from the start, however clicking the first red dot that skips to Part One will drop you straight into a flickery part.
    EDIT: I found out that when my video card is forced into its highest performance setting, flickering is greatly reduced though doesn't disappear entirely.

    What is your operating system, version & edition?
    What is your web browser?

  • Dynamic display of frames

    I want to display a repeating frame only when a certain action takes place, like cliking on a link / button. It has be to hidden if the user again cliks on it.
    There used to be a Button interface in reports which would solve my purpose, but i found that the button is not being supported from 9i. What other object is available in 9i which replaces the button.

    Hi,
    Try this code. It will create search help for select option VBELN.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
    lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
    DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    Creating range table
    DATA lt_range TYPE REF TO data.
    CALL METHOD lo_r_helper_class->create_range_table
    EXPORTING
    i_typename = ''PERNR_D'
    RECEIVING
    rt_range_table = lt_range.
    Disabling the global options
    CALL METHOD lo_r_helper_class->set_global_options
    EXPORTING
    i_display_btn_cancel = abap_false
    i_display_btn_check = abap_false
    i_display_btn_reset = abap_false
    i_display_btn_execute = abap_false.
    Adding the selection field
    CALL METHOD lo_r_helper_class->add_selection_field
    EXPORTING
    i_id = 'PERNR_D'
    I_OBLIGATORY = ABAP_TRUE
    i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    I_VALUE_HELP_ID = 'PREM'
    it_result = lt_range.
    Check this artcle for more details which uses VBELN as select option with search help.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/103e43d5-fdb8-2d10-90ab-b5e8532cbc04

  • Dynamic Draw

    I want to try display a relationship diagram.
    I have the xml
    <School>
         <Class>
              <Name>1st Grade</Name>
              <StudentName>A</StudentName>
              <StudentName>B</StudentName>
              <StudentName>C</StudentName>
              <StudentName>D</StudentName>
         </Class>
         <Class>
              <Name>2nd Grade</Name>
              <StudentName>E</StudentName>
              <StudentName>F</StudentName>
              <StudentName>G</StudentName>
              <StudentName>H</StudentName>
         <Class>
         <TeacherDetails>
              <Teacher>
                   <Name>AAAA</Name>
                   <Teaches>1st Grade</Teaches>
              <Teacher>
              <Teacher>
                   <Name>BBBB</Name>
                   <Teaches>1st Grade</Teaches>
                   <Teaches>2nd Grade</Teaches>
              </Teacher>
         </TeacherDetails>
    <School>
    1. How can I draw it, also, since there is a dependency for the teacher, there needs to be a connectivity between the Class & Teacher also.
    2. Is it possible to display them as icons and provide a tool tip which gives description, like the teacher icon would have teacher name and the grade she/he teaches?
    Any help!!

    Well this is what you have to do.
    1. You have to define a protocole (a syntex) to define the tree in the text file (using text only format). This can be easily done with XML.
    2. Then the you sould write a code that can build a model from that data. Basical a datastructure that represents a tree
    3. Write an algorithm which can render the model in to html you will have to do lots of trial and error to get the best looking tree if you are not a HTML/CSS expert.
    Make every node rendered in your html a hyperlink which links to the servlet which remove the node you will need an Id for every node to identify the node to be deleted (You can use the tree path to that node if the node names within a branch are unique).

  • I want a rectangular frame round part of image to draw attention to it?

    I am making a clip to demonstrate my camera zoom by starting off at W/A and zooming in.
    I want to highlight the area I am going to be zooming to by drawing a frame around it.
    The only rectangles and circles I can find in the Generators appear to be solid shapes or solid shapes with a border.
    There doesn't appear to be any way of getting rid of the central colour so the underlying video will show through.
    Any ideas.
    I could do it in FCP 7 but if possible I would like to use FCP X.

    I must be blind!
    I have just spotted the Fill tick box!
    I was looking for it before I posted but could only see the Outline tick box!
    Send a brief reply and you can have the rest of the points.

  • Draw frames in smartforms

    Hi all,
    Is it possible to use some costomized frame other than the predefined frame-pattern in SMARTFORMS? I just want to draw some frame like what can be done in standard report.
    Thanks & Regards,
    Chen Chang

    Hello Chang,
    NO it is not poosible to use custom frames.
    Work around could be to create a BMP and uplaod in background (Yes, it will only work if it is a template i.e STATIC).
    Rgds,
    Mano Sri

  • Dynamic source value for uix frame

    Hi all,
    I have UIX page with two frames, left is for navigation (includes tree) and right one is for content.
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
          xmlns:data="http://xmlns.oracle.com/uix/ui"
          xmlns:http="http://www.w3.org/TR/REC-html40">
      <content>
        <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
          <left>
            <frame source="Tree.uix" name="tree" width="30%"/>
          </left>
          <center>
            <frame name="contents" data:source="${sessionScope.startPage}"/>
          </center>
        </frameBorderLayout>
      </content>
    </page>I'm trying to use ${sessionScope.startPage} to get source value, but it doesn't work. I am sure that there's such a parameter in http session and I can't understand why this happens.
    Could anyone please say if it's possible to use dynamic source for frame?
    Did anyone meet such problems?
    Is there any other way to set the source value?
    thanx in advance
    Renat

    Hi again,
    So far I've found such a solution:
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:http="http://www.w3.org/TR/REC-html40">
    <content>
    <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <top>
    <frame source="Top.uix" name="top" height="10%"/>
    </top>
    <left>
    <frame source="Tree.uix" name="tree" width="30%"/>
    </left>
    <center>
    <frame name="contents" source="startPage.uix"/>
    </center>
    <bottom>
    <frame source="Bottom.uix" name="bottom" height="10%"/>
    </bottom>
    </frameBorderLayout>
    </content>
    </page>where startPage.uix is:
    <?xml version="1.0" encoding="windows-1251"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    </provider>
    <contents>
    <document>
    <metaContainer>
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout title="">
    <contents>
    </contents>
    <pageHeader>
    <globalHeader/>
    </pageHeader>
    </pageLayout>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="*">
    <method class="myPack.PageUtils.RedirectAction" method="redirect2anotherPage"/>
    </event>
    </handlers>
    </page>and redirect2anotherPage is:
    public static EventResult redirect2anotherPage (BajaContext context, Page page,
    PageEvent event) throws Throwable {
    HttpSession hs = context.getServletRequest().getSession();
    Page otherPage = new Page((String) hs.getAttribute("startPage"));
    return new EventResult(RedirectUtils.getRedirectPage(context,
    otherPage));
    }This seems to be working, but I am not sure if this is the correct solution (lonely solution).
    Is there a way to use only UIX EL syntax?
    Any ideas about this?
    Renat

  • Draw method stop at first frame

    I need to make an animated flower movie using tile of one bitmap. I use the code below but write only the first frame then stop, how can I draw more frames?
    createEmptyMovieClip("triangle",2);
    triangle.beginFill(0x000000,100);
    triangle.moveTo(width_map/2,height_map/2);
    triangle.lineTo(width_map/2+(height_map*Math.tan(angle)/2),0);
    triangle.lineTo(width_map/2,0);
    triangle.endFill();
    triangle._visible = false;
    attachMovie(elm_link,"elm",1);
    elm.setMask(triangle);
    sl_bmp = new flash.display.BitmapData(height_map*Math.tan(angle), height_map/2, true, 0x00000000);
    angl = 0;
    for (i=1; i<=slices; i++) {
         createEmptyMovieClip('elm'+i,10+i);
         this['elm'+i].createEmptyMovieClip('elm',0);
         this['elm'+i].elm.attachBitmap(sl_bmp,0,"always",true);
         this['elm'+i].elm._x = -height_map*Math.tan(angle)/2;
         this['elm'+i].elm._y = 2-(height_map/2);
         this['elm'+i]._x = width_map/2;
         this['elm'+i]._y = height_map/2;
         if (angl>0) {
              this['elm'+i]._rotation = angl;
         angl += 360/slices;
    function onEnterFrame() {
         elm._rotation += rotspeed;
         elm._x += transpeed;
         elm._y += transpeed;
         var tmp_bmp = new flash.display.BitmapData(height_map*Math.tan(angle)/2, height_map/2, true, 0x00000000);
         tmp_bmp.draw(elm,new flash.geom.Matrix(1, 0, 0, 1, -(width_map/2), 0),null,"normal",null,true);
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(-1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);

    Your line code working, was not visible in the area Working with transparency too.
    function onEnterFrame() {
         elm._rotation += rotspeed;
         elm._x += transx;
         elm._y += transy;
         var tmp_bmp = new flash.display.BitmapData(height_map*Math.tan(angle), height_map, true, 0x00000000);
         tmp_bmp.draw(elm,elm.transform.matrix,null,"normal",null,true);
         sl_bmp = new flash.display.BitmapData(height_map*Math.tan(angle)*2, height_map, true, 0x00000000);
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(-1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);
         angl = 0;
         for (i=1; i<=slices; i++) {
              createEmptyMovieClip('elm'+i,10+i);
              this['elm'+i].createEmptyMovieClip('elm',0);
              this['elm'+i].elm.attachBitmap(sl_bmp,0,"always",true);
              this['elm'+i].elm._x = height_map*Math.tan(angle);
              this['elm'+i].elm._y = height_map;
              this['elm'+i]._x = width_map/2;
              this['elm'+i]._y = height_map/2;
              if (angl>0) {
                   this['elm'+i]._rotation = angl;
              angl += 360/slices;
    Now I have another little problem, the tiles don't meet exactly in the center.

  • Dynamically update Frame Viewer during Color Correction?

    Is it possible to dynamically update the Framer Viewers in Multiple Edits mode?
    I mean, when you move the cursor to a new clip, the Frame Viewers update. However if you hit play, the Frame Viewers remain on the same frames even though the cursor hops along to new cuts.
    It'd be nice if the Frame Viewers updated to the previous & next cut automatically/dynamically as you play ... the only way I see to update them is to stop playback & pause on a new cut.

    bump

Maybe you are looking for

  • Coldfusion 11 Multiple Instance Multiple User Access to Settings Summary exception

    I have a multi-instance and using multiple user administration. One of my users notified me he was checking an exception when viewing "Settings Summary" in CFIDE. I was able to replicate the issue by creating a new user and assigning all available pe

  • I have Lightroom 5 and would like to install/buy Plug in for deveopment of my images

    I have Adobe Lightroom 5 and I would like to install/buy a Plug in for better development of my images Can you advise how to do this thanks

  • Viewing PDF files on the Zire 31

    I am using Adobe Reader for Palm OS Mac. When I view a PDF file in detail on the Palm, it automatically converts it to grayscale to save space. However, it is a color map and it is nearly impossible to read in grayscale on the Palm. Is there a way to

  • Problem uninstalling virtual PC 7!!!

    I recently installed virtual pc 7 on my powerbook, but after having it run so slow and noticing that i only had 5 gbs left (the windows virtual machine was assigned 20 gigs of my 80) i decided to uninstal it. the uninstall seemed to be successful, ho

  • ORA-00600 内部错误代码,参数:[kpncxcc-3]

    OS WONDOWS2008 64位 数据库版本 11.1.0.7.0 - 64bit 数据库警告日志 Mon Nov 26 11:03:45 2012 ORA-00020: No more process state objects available ORA-20 errors will not be written to the alert log for the next minute. Please look at trace files to see all the ORA-20 e