Flex :: Making Images 300dpi From Pngencoder?

Dec 26, 2010

Also i understand that i only get 96dpi from image, because of my monitor dpi, but I need to make sure that even it generates 96dpi, it really is 300dpi quality.

I am taking 28 original images from user and making a "thumbnail picture collage" out of it for printing. I dont get the crisp quality in generated collage images, compared to originals. Here are my function, I really need to generate photo quality images for printing.

private function createImages(object:Object):void
{
progress.text = "Start Generating Images ( "+(index+1)+" - 28 )";
images_array.push(ImageSnapshot.captureImage(album.tilesList[index],30 0,new PNGEncoder()));

[Code].....

View 1 Replies


Similar Posts:


Actionscript 3 :: Create A Pdf In Flex With Pdf Alive For Flex In 300dpi

Mar 1, 2012

Im trying to create a pdf in high resolution in 300dpi with pdf alive for flex, i used this code: var image:ImageSnapshot = ImageSnapshot.captureImage(page[i], 300, new JPEGEncoder()); but i create the pages with a loop for(), and this makes that my web aplication crashed, beacause it spend a lot of time to create the PDF. Exist some way to create this process in the background but dont want the .swf to freeze while the number crunching happens, or another way to create pdf in high resolution(300dpi) with flex.

View 1 Replies

ActionScript 3.0 :: PNGEncoder With PHP?

Aug 23, 2011

I am trying to utilize the PNGEncoder with the dynamicfash Base64 to send a Base64 String to PHP and save the PNG File but for some reason that i cannot figure out, the PNG file is never readable. It is there and has a size (contains data) but cannot be opened by anything so is not a valid png file. Here is my code...

Code:
var target:MovieClip = new MovieClip();
target.graphics.beginFill(0xff0000,5.0);[code]..........

View 1 Replies

ActionScript 3.0 :: PNGencoder WITH Transparency?

Feb 8, 2011

im using the pngEncoder from adobe, its working great. But all my .PNG's are saved with a whit bg, how to export with transparent?

ActionScript Code:
function eventPostPictureToServer(e:TimerEvent):void
{
var urlLoader:URLLoader = new URLLoader();

[code]....

View 1 Replies

ActionScript 3.0 :: ImageSnapshot And PNGEncoder In Flash

Sep 27, 2010

As usual I've come across something easy to do in Flex but not in Flash. Flex has ImageSnapshot and PNGEncoder to get a .png out of a display object. Any way to do this in flash without using a 3rd party API as I can't distribute a license with my app. I'm using Flash CS5. I wish there was as much support for Flash as there is for Flex. I've had to write my own tree component, if I'd have used Flex I could have just used the Flex tree component. I'm hoping I don't have to write my own display object to png class myself.

View 2 Replies

Actionscript :: PNGEncoder Performance And UI Blocking?

Sep 25, 2009

I'm trying to use PNGEncoder to encode a bitmapData object into a png ByteArray so I can send the data to the server. Everything would be peachy except the bitmapData is 4000x4000px and when I run the PNGEncoder.encode function on it the whole app stops (UI is blocked) for 5-8 seconds while it runs. Does anybody have any suggestions on how to not make it block so bad, I read about chunking up the process (since you can't multithread in AS3) but can't find any sample code on chunking up the process.

View 6 Replies

ActionScript 3.0 :: Any Way To Use PNGEncoder Multiple Times?

Jun 7, 2009

I have a large image that exceeds the bitmapdata limits, so I am trying to break it up into 4 separate images and encode them separately using the PNGEncoder. The first 1 comes out great. The remaining 3 all contain the same bytearray data and result in a blank image.

Code:
public function encodeUsersDrawing():void{
pngImageQuadrant1 = new BitmapData(1875, 2400, true);
pngImageQuadrant2 = new BitmapData(1875, 2400, true);
pngImageQuadrant3 = new BitmapData(1875, 2400, true);
pngImageQuadrant4 = new BitmapData(1875, 2400, true);
[Code] .....

View 2 Replies

ActionScript 3.0 :: PNGEncoder - Save A Png Image Onto The Server But It Is 0kb

Dec 23, 2010

I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb. My actionscript is:

[Code]....

View 1 Replies

ActionScript 2.0 :: AS3 Way To Use Jpgencoder / Pngencoder Classes From Adobe

Jun 14, 2010

Is it a way to use jpgencoder/pngencoder classes from adobe in AS2 projects?

View 2 Replies

ActionScript 3.0 :: PNGEncoder - Saving Image Onto Server

Dec 23, 2010

I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb.

My actionscript is:
import com.adobe.images.PNGEncoder;
import flash.display.BitmapData;
import flash.utils.ByteArray;
// Go to PHP Page.//
bitmap_btn.addEventListener(MouseEvent.CLICK, gotoPHP);
function gotoPHP(event:Event):void {
[Code] .....

View 2 Replies

ActionScript 3.0 :: Flash - Keep 'Alpha Channel' Data With PNGEncoder?

Jul 25, 2011

I'm trying to import an image and assign it to a Loader object, which works just fine, though I want to use the PNGEncoder rather than a the JPGEncoder, because if the source image has an alpha channel (transparency) I want that data preserved. The code, or the encoder, or something is preventing or deleting the alpha channel data. What should be transparent is showing as white.

[Code]....

View 2 Replies

Flash :: Merge Multiple BitmapData Objects Into One So That It Can Be Encoded Using PNGEncoder?

Jan 30, 2012

I am creating a program that is effectively an sprite creator. I'm very new to AS3, but I know JQuery, JS, PHP, etc. After going through multiple steps of selecting pieces to customize a character, you are supposed to be able to download the final product using fileReference(). Everything works, and I can download the image in the end, but the problem is that I cannot capture all of several movieclips on the stage, I can only capture one. Maybe this will help clarify:

[Code]...

Could it be that each of the movieclips I'm adding to the sprite have children of their own?

View 1 Replies

ActionScript 3.0 :: Making Movieclips Out Of Images?

Oct 21, 2008

I am trying to load my images with xml and then turn them into movieclips and attach an eventlistener. With the code below this is the error I get.

ReferenceError: Error #1069: Property name not found on flash.net.URLLoader and there is no default value.at MethodInfo-1()

View 3 Replies

Flash :: Images Vibrate So Much Making The Animation To Look Bad?

Jul 28, 2009

I am doing an animation for a web site with Flash CS3. I need to make images (.jpg) that I converted in graphic symbols, to pass along the screen continuously. I know, for many of you this must be very basic question, but I don't know how to solve it. My problem is that the images vibrate so much making the animation to look bad.

View 3 Replies

ActionScript 2.0 :: Making Images Maintain A Certain Distance?

Feb 23, 2006

I'm making a thumbnail gallery where I want the image you click on to expand, while the pictures to either side move out of the way. I managed to get it working using this to move the pictures:

"Value" is just a number assigned to each picture, so this does one thing to the pictures to the right of the target, and one thing to the pictures on the left.

[Code]...

View 1 Replies

ActionScript 3.0 :: Making A Flash Banner With External Images?

Mar 2, 2010

Anyway what I need is a banner (or galleri) which pulls in external images. But i want it to be able to automatically get new images which I put in the folder.Also i want to be able to position this, since im going to make a banner/menu combo ( I can post an image of the concept if actually i have a link to the site where im want to use itI want to position the the banner in between the graphic to the left and right and I also want to position the menu on top of the banner.I've read some tutorials where you use a placeholder which i guess is what i'm supposed to do here.

View 1 Replies

ActionScript 3.0 :: Making ECommerce Header With Rotating Images?

Jan 24, 2011

I am trying to make a eccomerce header with rotating images that are linked in flash CS4. My problem is I get this error #1009 and I am not sure why. btn1 works fine but btn2 says its null and I check spelling and its correct for my instnace for button. It is the same for btn3-5 with the error.

btn1.addEventListener(MouseEvent.MOUSE_UP, goLayersSite);
function goLayersSite(event:MouseEvent):void {
var slideShow1:URLRequest = new URLRequest ("[URL]");
navigateToURL(slideShow1);}
btn2.addEventListener(MouseEvent.MOUSE_UP, goLayersSite01);
[Code] .....

View 1 Replies

ActionScript 2.0 :: Making A Project To Pull The External Images?

Nov 5, 2004

I am making a project to pull the external images, but this total bad one, what I would like to know is, I make to pull 5 external images showing one loading before show the images, I only start to show the images when all the images already will be pulled. Somebody knows as to make? or some tutorial one?

View 1 Replies

ActionScript 2.0 :: Making Flash Video With External Images?

Jul 2, 2006

I am making a flash video with externally loaded pictures. I have that working. Whats the problem then? Well I am trying to make it so those pictures appear instantly when called. So I need to preload them but I could not find a way to do this.

View 2 Replies

ActionScript 3.0 :: Making Images Inside A Classic Tween Clickable?

Jan 28, 2010

I'm not too good with flash. I'm trying to make a basic scrolling bar for sponsors. Here's a simple example: I've added an action:

Code:
addEventListener(MouseEvent.MOUSE_OVER, mo);
function mo (event:MouseEvent):void

[code].....

View 10 Replies

Actionscript 3 :: Link Images/layers In Flash CS4 - Making Them Move Together?

Nov 15, 2009

I have two copies of an image (one called blurPic_mc & one called sharpPic_mc) and I want to be able to move both of them around the screen togethe I need them to stay exactly on top of each other for some other functions I am running but right now the only one that moves is the top one (sharpPic_mc).I included my code below.

sharpPic_mc.addEventListener(MouseEvent.MOUSE_DOWN,Click);
sharpPic_mc.addEventListener(MouseEvent.MOUSE_UP,Release);
function Click(event:MouseEvent):void{

[code].....

View 1 Replies

ActionScript 3 :: Loading Images By Making URLRequest To Local Folder?

Jul 8, 2010

I want to make an application that loads some images with a Loader by making URLRequests to a local folder. Can I build the application and include somehow this folder so when I send it from a server to a client the URLRequests operate normally on clients side? Also if this is possible, the folder may be not viewable/accessible by the client but only from the Flash application that comes with it? So for example, this piece of code that runs nicely, locally, to my machine, if i send it to a client will continue to run to its machine. Can somehow send the folder and the SWF as one object?

private function clothesOn( outfit:String ) {
var clothier:Loader = new Loader();
var item:String = "clothes/" + outfit + ".gif";
var getItem:URLRequest = new URLRequest( item );
clothier.load( getItem );
this.addChild( clothier );
}

View 1 Replies

ActionScript 2.0 :: Making Button Stop Working When Group Of Images Is On Last Row?

Mar 12, 2006

It's been a while since I've last posted, but I read a lot of others' posts, and try to keep up to date.My question is this:I have a group of images that are loaded up using xml into a movieclip. The movieclip is masked. I have 2 buttons, that scrolls the grouping either up or down. I would like to make these buttons inactive when the grouping of images is on it's last row, meaning when there is only one row of images shown on the screen/mask.

I have tried using hitArea, but I wasn't successful. This would be easy for me to achieve if I wasn't trying to make it a bit dynamic. Basically, someone would be updating the xml file with more nodes/images and the swf would update the list of images, thus making it difficult to hardcode when the list should stop scrolling.

View 10 Replies

Making Text And Images Not Scale Whilst The Whole Flash Doc Fills Browser?

Aug 25, 2010

how I can have my swf fill the entire browser (as in publish settings 100% w & h etc) but not stretch/distort the text and images in the swf.

There is a site [URL] that does this. It fills the whole screen yet when you resize, the objects do not become distorted.

I may have the wrong approach with publish settings width & height 100%??

View 2 Replies

ActionScript 3.0 :: Making Simple Image Gallery Auto-rotate Through The Array Of Images?

Nov 24, 2010

making my image gallery, but it only works as each image in the array is clicked. Now I am trying to make the gallery move automatically to the next image in the array every 5 seconds while still giving the user the ability to click on an image to view the one that they want.Here is my code so far (like i said it works great, but only as a click-able gallery):

import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.display.Sprite;

[code].....

View 1 Replies

Flex :: Use Transparent Images To Mask Images And Add An Eventlistener?

Sep 2, 2009

the easy part is to create the image and the mask for it:

// The jpg
var elementImage:Image = new Image();
elementImage.source = "/assets/materials/9/main-body.jpg";

[Code].....

but that's not working here. the event listener reacts even if i hover over the trasparent parts.

if i draw an vector graphic and use it to mask the image it works just fine...

View 3 Replies

Actionscript 3 :: Flex Dynamically Loading Images Does Not Allow Images' Id

Oct 20, 2009

I need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID.

<comps:ExercisesScroller id="scroller" x="300" y="100"
ex1="@Embed(source='assets/Exerc_1.png')"
ex2="@Embed(source='assets/Exerc_2.png')"/>

and so forth this works. But instantiated in CDATA it does not work:

import components.ExercisesSCroller;
private var custScroller:ExercisesScroller;
private function init():void {

[Code].....

View 1 Replies

Flex :: Making A Custom Glossary?

Feb 18, 2010

I want to make custom dictionary component that loads data from external xml and shows the related meaning.Here is XML file

<glossary>
<alphabet id="A">
<term heading= "Anchor" definition="A mechanical device that prevents a vessel from

[code].....

View 1 Replies

Flex :: Strategy For Making LocalConnection Ids Unique

Aug 8, 2009

I'm using a localconnection to allow communication between an actionscript 2 swf and an actionscript 3 swf.Localconnection objects share a global namespace across a user's pc.So, this means, a user can fire up my flash app in one browser, and submit commands, back and forth, which is what i want. But the user can also fire up another browser, and all commands sent to my application will be handled by the first application if its still loaded in the first browser.When I make the LocalConnection, I specify an id, but the id must be known to the actionscript 2 swfs, and therein I find a problem. I don't know how to let the actionscript 2 swfs know what the unique id is.

View 1 Replies

Flex :: Making Image Span Across Several Components?

Aug 11, 2009

Recently I've found a nice on-line diagramming tool - LovelyCharts. I like the way UI is designed - you can view screenshot here. I wonder how to make an image that span across multiple components, like the LovelyCharts logo in the upper right corner of the screenshot.

View 2 Replies







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