Canvas background color bug

Hey,
abviously there is a bug in the new Adobe Reader X.
The Adobe Reader crashes at start up when setting the background color of the 3D annotation canvas with the following function:
In Adobe Reader 9.x this worked for me!
//=============================
function changeBGcolor()
var topColor = new Color(1.0, 1.0, 1.0);
var bottomColor = new Color(0.5, 0.5, 0.7);
var myRenderObject = new RenderEventHandler();
myRenderObject.onEvent = function(event)
var theCanvas = event.canvas;
theCanvas.background.setColor(topColor, bottomColor);
runtime.addEventHandler( myRenderObject );
changeBGcolor();
//===========================

I am using Windows Vista 64bit and I create the PDF with the iText library, but as I said, with Adobe Reader 9.x everything worked fine for me. Now, with Adobe Reader X, that does not work.:(

Similar Messages

  • Change viewer/canvas background color?

    When I have a HD clip in the canvas window I get the letterbox look.
    The bars are currently grey which I assume is default.
    Is there anyway to change the canvas background color to black?

    Just hit Control + U if you fancy the standard layout
    or go to FCP main menu>Window>Arrange> Two Up
    if you fancy a more useful layout (IMO).
    These actions will clear the confusion.
    I have the Two Up view shortcut set to Shift + 2 (You can choose your own).
    You can achieve that by customizing your keyboard shortcuts (Alt/Otion + H to start with keyboard layout customization).
    Luca

  • Defaule Canvas background color - Forms 6i

    How do i set the default forms canvas color. I changed the canvas background color to blue. i want my original color back. The property of foreground color is <Unspecified>. I need the same for background.

    r u doin this on Runtime ? i thought u r talking abt design time....coz sometimes builder stuck with color of canvas
    if yes then set_canvas_property('canvasname',background_color,'colorname');
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]
    Edited by: Baig on Jan 28, 2010 2:29 PM

  • Setting Canvas Background Color issue

    For some reason I cannot set a color for my canvas background. I have tried using setStyle('backgroundColor', colorNumber); in actionscript and setting directly in the mxml with no success. It only takes the value that is set in the design mode of Flex.  Ideally I want to load in a color value from an xml file and use that color value, which I have been doing for other components, but for some reason the canvas will not work. Any ideas???

    Ok this is complete code, where i'm reading xml through wrapper which you can do it through HTTPservice. Make sure you put proper swf name while embeding.
    <!--------------------------------------------------------------mxml code---------------------------------------------------------------------->
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="create()" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
    <mx:Script>
    <![CDATA[
    import mx.utils.ColorUtil;
    import com.anychart.visual.fill.Fill;
    import com.anychart.styles.Style;
    import mx.collections.XMLListCollection;
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    [Bindable]
          public var inputdata:XMLListCollection;
          [Bindable]
         public var canvasData:String;
         [Bindable]
         public var list:XMLList;
         [Bindable]
         public var mycolors:Array = new Array();
         public var count:int=0;
         public var clrname:String;
        public function create():void{
        //Reading data from wrapper
        canvasData=mx.core.Application.application.parameters.canvasData;
        //convert into xml      
            list = new XMLList(canvasData);
            //datasource
            inputdata = new XMLListCollection(list);
            for(var j:int=0;j<3;j++){
        for each(var item:XML in inputdata){
    mycolors[j] =item..name[j].toString();
        public function showme():void{
        var value:String=" ";
        for(var i:int=0;i<3;i++){
        value = mycolors[i]+"\n"+value;
        Alert.show(value);    
        public function change():void{
        if(count == 3){
        count=0;
        clrname=mycolors[count];
        else{
        clrname=mycolors[count];
        Alert.show(count+" "+clrname); //This alert line is optional you can remove it all other lines are imp.
        count++;
        mycanvas.setStyle("backgroundColor",clrname);
    ]]>
    </mx:Script>
    <mx:Panel x="246.5" y="48" width="500" height="544" layout="absolute" backgroundColor="#E8E5E5">
    <mx:Canvas id="mycanvas" x="55" y="40" width="370" height="436" backgroundColor="0xFFFFFF" cornerRadius="20">
    <mx:Label x="51" y="55" text="This is Canvas" width="147" height="23" fontSize="17"/>
    <mx:Button id="btn1" x="51" y="99" label="Show me" click="showme()"/>
    <mx:Button id="btn2" x="152" y="99" label="Change"  click="change()"/>
    </mx:Canvas>
    </mx:Panel>
    </mx:Application>
    <-------------------------------------------------------------------------------jsp code where swf embeded--------------------------------------------------------------------------->
    <html lang="en">
    <head>
    <title></title>
    <%
        String canvasData = "<values><name>0xE4F9A0</name><name>0xA5BC4E</name><name>0x6693B0</name></values>";
    %>
    </head>
    <body scroll="no">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="problem" width="100%" height="100%"
    codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="problem.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name='FlashVars' value='canvasData= <%= canvasData %>'/>
    <embed src="problem.swf" quality="high" bgcolor="#869ca7"
    width="100%" height="100%" name="problem" align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/go/getflashplayer"
    FlashVars="canvasData= <%= canvasData %>">
    </embed>
    </object>
    </body>
    </html>

  • The canvas background color disappeared when using updateDisplayList

    If I put code in the updateDisplayList for canvas. The
    background color is disappeared. if I called
    super.updateDsplayList(), all the drawing is not show.
    What 's wrong with my code or Canvas class?
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:cmp="PlanUI.*" creationComplete="init()">
    <mx:Style source="2dStyle.css"/>
    <mx:Script>
    <![CDATA[
    import PlanUI.TestCanvas;
    public function init():void
    var dc:TestCanvas=new TestCanvas();
    dc.percentWidth=100;
    dc.percentHeight=100;
    dc.setStyle("backgroundColor",0xFF0000);
    this.addChild(dc);
    ]]>
    </mx:Script>
    </mx:Application>
    package PlanUI
    import mx.containers.Canvas;
    public class TestCanvas extends Canvas
    public function TestCanvas()
    super();
    this.percentHeight=100;
    this.percentWidth=100;
    override protected function
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    this.graphics.clear();
    // super.updateDisplayList(unscaledWidth, unscaledHeight);
    this.graphics.lineStyle(1,0xFF0000,0.3);
    this.graphics.drawRect(0,0,200,200);

    Yes, it is the same drag and drop project.
    I changed color of draw rectangle The rectangle showed up. If
    I called super.updateDisplayList(unscaledWidth, unscaledHeight) in
    updateDisplayList function, the background will show up, however,
    show in front of the rectangle.
    There are 2 problems:
    1> background color is show in front of rectangle,
    2> I set rectangle.x=0, rectangle.y=0, but the begin point
    is out side of the the canvas.
    package PlanUI
    import mx.containers.Canvas;
    public class TestCanvas extends Canvas
    public function TestCanvas()
    super();
    this.percentHeight=100;
    this.percentWidth=100;
    this.setStyle("borderThickness", 0);
    override protected function
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    // super.updateDisplayList(unscaledWidth, unscaledHeight);
    this.graphics.clear();
    this.graphics.lineStyle(33,0x00FF00,1.0);
    this.graphics.drawRect(0,0,unscaledWidth/2,unscaledHeight/2);
    // super.updateDisplayList(unscaledWidth, unscaledHeight);
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:cmp="PlanUI.*" creationComplete="init()">
    <mx:Style source="2dStyle.css"/>
    <mx:Script>
    <![CDATA[
    import PlanUI.TestCanvas;
    public function init():void
    var dc:TestCanvas=new TestCanvas();
    dc.percentWidth=100;
    dc.percentHeight=100;
    dc.alpha=1.0;
    dc.setStyle("backgroundColor",0xFFEE00);
    this.addChild(dc);
    ]]>
    </mx:Script>
    </mx:Application>

  • Changeing Canvas Background Color

    Hi !
    Once I have defined background color property(at design time) then how i can not change it back to <Unspecified> or Null? It doesnot except <Unspecified>. is it a bug?
    Regards
    Neeraj

    hi
    after clicking right of "background color" part,
    click "Inherit" button which is at the top of the
    "Property Palette" window..
    your background color is now <Unspecified> as you want..

  • Canvas background color

    I am trying to place a wide screen matt in the canvas. However the canvas background is grey....and the mask applied to the actual picture is black....how do I change the background color in the canvas so it is all black?
    g5   Mac OS X (10.4.4)  

    The grey you are seeing won't show up in any Quicktime export or tape output. It is just the area surrounding your VIEWABLE are. If you resize the window or go to the WINDOW menu and choose a workspace preset, like TWO-UP then it will go away. But it is nothing that will appear on your footage.
    Shane

  • Stacked canvas background color

    How on earth do I get the background color of my stacked canvas to be the same as the rest of my form (the default forms grey color)? I have both my main canvas and stacked canvas on the same visual attribute, all with background & foreground colors set to unspecified (at both the canvas and visual attribute level). No matter what, the background of the stack is white. I've tried setting it at runtime, but the color is slightly different on each machine used. I've tried everything I can think of -- any ideas? Thanks.

    Well the problem is that we want the background surrounding our main canvas to be white (that way the tabs up top are white too) and the form itself in the main canvas to be the default grey (that is our standard). Changing the background to gray or some other color in the visual attribute changes both the white background and the default form's grey to that one color, which doesn't really fix the problem at all. If it's left as unspecified, we get the white background and the default forms grey for the background color of the form. The stacked canvas always wants the white.

  • Canvas background color slightly off

    I notice this with certain colors more, but it seems like even if I paint the background the same exact color as my layer background, the canvas color is not exactly the same. I'm assuming it's a color management/profile kind of issue, but I keep that stuff off, so I'm not sure what's causing this. Has anyone had a similar experience?
    Thanks,
    -Onur

    Say what?
    Could you post a screenshot with the Layers Panel visible because I don’t quite follow?
    I'm assuming it's a color management/profile kind of issue, but I keep that stuff off, so I'm not sure what's causing this.
    How exactly did you do that and how do you suppose it should affect you if you have turned it »off«?
    Are you talking about multiple images or one?

  • Resetting Background Color to default

    I made a change to the Background Color Property for the Canvas and now want to reset it to the default (so that it will use the color scheme set in the formsweb.cfg file). How do I do this? Typing in "<unspecified>" or "DEFAULT" does not work (it won't allow these values). I can't tell which of the swatches in the color picker would be the default value.
    thanks,
    sharlene
    [email protected]

    Guys, the original issue is to re-set the canvas
    background color without drop and re-create it. Thus
    that 'Inherit' button on top of the property will not
    work for canvas, but for items on the canvas!
    Worked for me. (Forms 6i Version 6.0.8.22.1, patch 13)
    In fact, I was about to ask how to set the background color of radio buttons, and just saw this topic. I tried the same thing for the radio buttons, and the Inherit button works there, too. (Thank you, Kevin!)

  • Background color of front panel when printing

    My vi has a control named "print" which allows the user to print the front panel during execution. The background color of the front panel is white, to avoid filling the printed page with any color. In labview 7.1 (and also 6.0), this worked perfectly. I recently updated to labview 8 and now the background color of the print is gray. Does anybody have any idea how to avoid this?
    I am using the "print panel.vi" found in the "vi.lib\utility\printvi.llb". I also tried with the "Easy Print VI Panel or Documentation.vi", with the same result. The same problem also occurs when exporting the front panel to a ".png" file.
    Best regards

    I tried with different colors, without any success.
    I think that this is a bug !  Good catch !
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Background color bug.vi ‏11 KB

  • How to change the background color of  a Tab Canvas

    Hi All,
    I accidentally changed existing background color of a tab Canvas to ' gray' which is not matching with main canvas (which has default).
    How can I change background color to default. Please help me.
    -Thanks

    In the property palette of the tab page, click on the "Background Color" property and click the "Inherit" button on the top of the property palette, this will revert the value of the property to the default when the tab page was created which is <Unspecified>.
    But if your tab page has inherited the color from a property class it will revert to what was specified in the property class.
    Tony

  • How do I change the background color of my canvas in FCPX?, How do I change the background color of my canvas in FCPX?

    How do I change the background color of my canvas in FCPX? I changed it from black to checkered but would like to return it to it's orginal settings.
    Thanks

    You can change the background display color in the playback preferences, either black, white, or checkerboard. This does not change the output color. If you want to add a color to the video, you have to place a custom generator underneath your video and change the color in the inspector.

  • BUG(?): background color not in print profile

    When printing a photo from Lightroom 3 with paper background color this color is not corrected for printing, although I print with icc, print profile from Spyderprint. The photo itself is corrected. This means that the paper backround is colored instead of gray, for example.
    Is this a bug? I think so, because I there is no way I can change this.
    Thanks

    Hello CameraHans (are you Dutch, by the way?)
    The whole border or sheet has a color cast. The photo itself has not. Both are in greys, so I will do as you suggested and look what happens when I do this in colors.
    I will insert 3 screenshots, 2 of the Lightroom environment, and 1 of the print preview, I used here the 'contour' to show the effect. You can very well see that the color of the border does not change at all, Thanks, Hans van den Berg

  • Cannot change the Canvas Extension Color from "Background" to a color of my choosing. Is this a glitch, or is there some setting that I can change?

    Cannot change the Canvas Extension Color from "Background" to a color of my choosing. Is this a glitch, or is there some setting that I can change?

    It depends on how exactly you are doing it but to change the background, I suggest watch this video:
    <How To Change Background in Photoshop Elements 11 - YouTube>
    Hope this helps.

Maybe you are looking for