Flex :: Unable To Create Snapshot Of Canvas?

Nov 6, 2009

In my application a canvas object has height = 90 px & width = 86400 px (indicating number of seconds in a day [60 * 60 * 24] ). The canvas is scrollable and the user can add or delete components in that.Now, I want to have snapshot of the whole canvas & shrink it to size 910x30 to draw taken snapshot in another canvas.Can anybody tell me how to take snapshot of such large Component?I have tried to take snapshot in BitmapData object but as it max width is 2880 can not give whole canvas snapshot.

View 3 Replies


Similar Posts:


Flex - Unable To Get Focus On Canvas?

Dec 13, 2009

I am creating a canvas in actionscript like :

private var cvs_preview:Canvas = null;

[Code]....

So on the focus change i want to run the "end_preview_on_focus_change()" but this is not working. As per my understanding, i think the canvas not getting any focus in the first place. I was trying to use focusManager.setFocus to do that after the canvas's creation complete. but even that is giving me an error.

[Code]...

View 3 Replies

Flex :: Create A Canvas Of 1k X 1k Pixels With Zoom In An Specific Area?

Jan 25, 2012

I'm developing a web app using Flex. This app allows to draw forms in a Canvas (like MSPaint in Windows).Now, I want a new feature on it: an infinite canvas. The user should be able to drag the main Canvas and this should be infinite in X and Y axis. Consecuently, this Canvas should be resized in real time.

Obviously, I don't want to create a Canvas of 1k x 1k pixels with zoom in an specific area to give the feeling of an infinite drawing area.

EDIT:I just read that Flash/Flex Flash/Air supports canvases up to 4056x4056 px, not infinite.

View 1 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

Flex :: Skin A Canvas With Image And Scale It To Size Of Canvas In It?

Apr 9, 2011

I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...

View 2 Replies

ActionScript 3.0 :: Unable To Make An Image As An Object On The Canvas

Apr 30, 2010

I have an app wer i drag and drop images onto a canvas and then move them on the canvas to arrange them appropriately. After that i shud be able to click on those images and draw connectors between them as the user seems required. But after dragging and dropping the images on the canvas and arranging them, when i click on the image i am getting a typeerror 1009 error, i.e, "cannot access a property or method of a null object reference".

Actually after arranging the images, i add an event listener to the image(proxy) on the canvas:

image.addEventListener(MouseEvent.CLICK, mouseClickk);
image.addEventListener(MouseEvent.DOUBLE_CLICK, mouseUpp);
MouseClickk Function:

[Code].....

View 0 Replies

ActionScript 3.0 :: Snapshot Of A Movieclip And Add The Snapshot To The Stage On Every Frame?

Nov 8, 2009

I want to take a snapshot of a movieclip and add the snapshot to the stage on every frame.

Does anyone know how to do this?

I'm trying to achieve a reflection effect...

View 3 Replies

ActionScript 3.0 :: Create Flash Snapshot In A Windowless Environment?

Aug 6, 2009

I have this flash player we use to create some graphs and charts of our business performance. We use flash because we like those neat-o graphics and overall User experience.The thing is that now I need to generate snapshots (i.e. images) of those charts every Monday so I can save them to disk.Our flash player takes arguments at startup (or runtime) that specify the data we want to load and the date range, and we have LOTS of charts around.

I would like to know if there is any way to create these images in a batch, window-less process in linux. My goal would be to have a script that runs at 2am, automatically loads all the graphs say for the latest week, and creating PNG images for each. All this in one of our window-less (but with X11 libraries) linux boxes.

View 2 Replies

Flex :: Unable To Create A New Instance Of Type 'some Class'. Types Cannot Be Instantiated Without A Public - No Arguments Constructor

Mar 1, 2011

I have a class with constructor and overloaded methods in it. When i try to import that class using blazeds i get an error saying [RPC Fault faultString="Unable to create a new instance of type 'some class'." faultCode="Server.ResourceUnavailable" faultDetail="Types cannot be instantiated without a public, no arguments constructor."] How to import class having overloaded methods using blazeds

View 1 Replies

ActionScript 3.0 :: Create A Canvas For CS4?

Aug 11, 2010

How to create a canvas in AS3 for CS4? wat is the header file to be included ? Is this code right?

canvas:Canvas = new Canvas();
canvas.setStyle("backgroundColor", 0xff0000);
addChild(canvas);

View 2 Replies

ActionScript 3.0 :: How To Create Canvas For CS4

Aug 11, 2010

How to create a canvas in AS3 for CS4? What is the header file to be included?
canvas:Canvas = new Canvas();
canvas.setStyle("backgroundColor", 0xff0000);
addChild(canvas);
but this is not working.

View 1 Replies

Flash :: DisplayObject Snapshot In Flex 3?

Jul 9, 2009

i'm creating a visual editor in flex and need to let users export thier projects into Image format. But i have one problem: size of the canvas is fixed and when user add element which is out of these sizes some scroll bars added. And user continue working on the project. but when he want to take snapshot of the canvas he just get the visible part ot the canvas with scrollbars. how to get image of the fullsize canvas?

The only solution i found is to check the positions and sizes of canvas child objects and rezise it to fit them. then take snap and resize back. But it hmmmm... too complicated i think. Is there some "easy methods"?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>

[Code].....

View 3 Replies

Flex :: Sending Snapshot Without Using Base64Encode

Mar 15, 2010

var is:ImageSnapshot = myImagesnapshot;
var str:String = ImageSnapshot.encodeImageAsBase64(is);

As of now, I am sending my jpeg data to the server with the code above. The problem is that it almost doubles the size of the data. Is there a way to send the image data directly without using any encoding.

View 3 Replies

Flex :: How To Take Webcam Snapshot Picture

Jul 11, 2010

Using Flex, what is the recommended way of taking a webcam snapshot picture? Something along the lines of:
var camera:Camera = Camera.getCamera();
var image:Image = /* magic goes here */

View 2 Replies

ActionScript 3.0 :: Create A Canvas Dynamically

Feb 5, 2009

I'm new to Flex, but been working with AS 3.0 and Flash for many years. I'm trying to loop through a variable and based on the supplied information your the particular record, generate a canvas (and note: I'm using a Canvas as my movieclips in Flex). The new canvas (MC) will contain many other items within.

Any I'm wishing I was purely in Flash or can Flex do what I'm trying to ask it to do. I've searched high and low without find any results on creating a canvas component at runtime.

View 1 Replies

Flex :: Take A Snapshot Of A Movieclip With A Transparent Background?

Sep 13, 2010

I am coding in AS3 and I am using BitmapData to take a snapshot of a movieclip. Is there a way to have the end result BitmapData to support transparency?

How do I take a snapshot of a movieclip without any background?

View 2 Replies

Actionscript 3 :: Take Snapshot Of Video Control In Flex?

Feb 2, 2011

I had mx:Video object that play live strreamingvideo So how I can take snapshote of that Video

View 1 Replies

Flex - Taking A Snapshot, Scaling It And Repeating?

Apr 1, 2012

I'm trying to scale text from 1 to 5, a sort of zoom in type of look. I'm using the code below:

<s:Scale target="myLabel" autoCenterTransform="true"
duration="2000"
scaleYFrom="1" scaleYTo="5" scaleXFrom="1" scaleXTo="5"
>

The text scales terribly. So my goal is to take a snapshot of the text label at a large font, add it to the display list, set the scale to a 5th and then animate the scale up to 1. After that I have to set the text again and do it all over again.

This is a Flex app and that's where my question comes in. I don't know how to take a snapshot, then what to add it to (group?) and then how to erase it and start over again?

View 1 Replies

Actionscript :: Flex - Snapshot With Clipping Rectangle And Scaling Matrix?

Jan 29, 2010

var snapshot:ImageSnapshot = ImageSnapshot.captureImage(someSprite);
var file:FileReference = new FileReference();
file.save(snapshot.data,'abc.png');

n the above code I am able to capture an image.But I also want to apply a scalingMatrix(for zoomIn/Out) and a clipping rectangle to it. How to do it? I tried capturebitmapdata too, but with that I can't even get a proper image. See here. So I don't want to use that.

View 1 Replies

Flex :: Capture Snapshot With Camera Height / Width Different From Video Display

Feb 3, 2011

I have a video display in my flex app. which is attached to the camera. The camera resolution can vary depending on the user's selection, While the video display (preview) dimensions are fixed. I am then doing this:
bmd.draw(vidDisplay);

Where bmd is the bitmap.. The problem is the resulting bitmap has the correct size of the camera settings (which is set) but the capture from the video is always the size of the video display inside the bitmap.. I hope i am making sense. The result looks like a little picture inside a bigger image top left justified. I want to have a video display preview with fixed height, but be able to take snapshot with varying resolution.

View 2 Replies

ActionScript 3.0 :: Create Simple Slide Gallery With One Main Canvas / Thumbnails

May 19, 2010

I'm trying to create a simple slide gallery with one main canvas + thumbnails.Usually the main canvas has auto slide feature.Users can choose the picture on main canvas from thumbnails.When the mouse is over thumbnails I want Canvas to stop auto slide show until that mouse is outside of thumbnails.So I start creating this, and I finish coding for auto slide show and choosing picture from thumbnails. Now I need to code if the mouse is on the thumbnail then temporary stop auto slide show.I thought the right way is to write the code like this,[code]but when I do this, the timer won't stop.

View 2 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

Flex Get Canvas Id?

Jan 20, 2010

I'm developing an engine to generate components.I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below:[code]

View 1 Replies

Flex :: Scroll A Canvas Up?

Dec 27, 2009

The basis for the chat window is a canvas. I've got that showing, but how do I make it scroll up? I want to clip the window so only the last 15 lines are shown.[code]...

View 1 Replies

Aligning The Canvas To The Right In Flex?

Dec 8, 2010

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="100%" height="100%">
<mx:Canvas backgroundColor="#A8A8A8" height="100%" right="0" top="0" width="100">
</mx:Canvas>

[Code]...

My code above works absolutely fine, until i resize my browser window to a size below 800px width. When the browser window is make of lesser width than 800px, the canvas with background color #A8A8A8 is on the right of the window, but the problem is, when I move the scroll bar, the canvas should remain on the right of the window. Which does not happen, and that is what my problem is.

How can I solve this issue. What should I do to keep my canvas be on the right=0 all the time.

View 1 Replies

Flex :: Lie Two Canvas At One Tab Navigator?

May 18, 2011

I want to lie two canvas at one Tab Navigator. when I use <mx:local it created multiple tab.

View 1 Replies

Flex :: Drawing Squares On Flex Canvas?

Dec 23, 2009

I'm trying to write some code to an animated images of squares on a Flex Canvas There's something wrong with my code below because it becomes progressively slowerI assume I'm supposed to clear the old squares or something.What am I doing wrong below?:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();">
<mx:Script>

[code].....

View 1 Replies

ActionScript 3.0 :: "mouse Off Canvas" - Go To Frame2 When The Cursor Leaves The Canvas

Feb 24, 2011

Basically I want to go to frame2 when the cursor leaves the canvas. The code below contains no errors when tested but it still does not work.

[Code]...

We know that the function gotoAndStop(frame2); works in multiple situations which means the first 3 line is fine. I don't know if the problem is the MOUSE_LEAVE event or this.stage which i suppose is the identifier for the canvas. I sure that there must be an alternative code for the identifier this.stage or the whole code. Any solution on how to fire the given function in the event when the cursor leaves the canvas?

View 2 Replies

Flex :: Zoom A Canvas Through Hslider?

Jun 19, 2009

i am required to zoom a canvas through Hslider. The problem is after zooming the canvas i cannot scroll to the extreme left and top of the canvas i.e some part of left and top canvas are not visible. i cannot find the reason. The source code for the example is given below.

[Code]...

View 3 Replies

Flex :: Disabled Canvas Look And Feel?

Jul 27, 2009

Is there a way in Flex by which a disabled canvas looks exactly the same as an enabled canvas? I haven't been able to make sense of disabledOverLayAlpha and disabledColor properties for a Canvas component.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved