ActionScript 3 - Possible To Distort Bitmap Image In Flash?

May 10, 2010

What I would like to do is to take a loaded GIF file as a Bitmap and then distort it by stretching and shrinking parts of it, so it would look like it got squished up against the screen. I'm pretty sure that there's no easy way in Flash to go beyond scaling and shearing, but I wonder if there might be some simple techniques to accomplish this kind of effect. By the way, I've also thought of pre-deforming the images in GIMP and saving them there, but I can't find a simple way to do it without learning their scripting language.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flash Bulge Distortion Effect - Convert The Text To Bitmap Format To Distort

Jun 7, 2011

I am developing some Text effects in AS3. I did complete curve text effect but are getting problem with bulge text. Because bulge text distort each characters so i have to convert the text to bitmap format to distort. The problem is the quality is not good enough, especially when we resize the object. I see in some websites they solved this issue and it works pretty good, like as [URL].

View 1 Replies

ActionScript 3.0 :: Transform And Distort Sprite Which Has Bitmap Childs?

Nov 7, 2010

I wanna transform and distort my sprite which has bitmap childs from this ._ |_| To this .._ /__

View 3 Replies

Flash :: Use The CS4 Tool's On A Bitmap Image After Tracing The Bitmap Image And Applying My Settings?

Aug 7, 2009

Use the flash CS4 tool's on a bitmap image after tracing the bitmap image and applying my settings?

View 10 Replies

ActionScript 2.0 :: Distort Image With It?

Feb 15, 2007

I know how to use the Bitmap transformation matrix to manipulate an image using ActionScript, but I cannot �distort� an image. I can only scale and skew.

I did a bit of research before posting my message, and I found a very complicated process of using Fuse along with Sandy (custom class) and some other custom classes. But there must be an easier way.

I simply want to distort an image like in the example below (I am referring to the one with the caption "No")

View 9 Replies

Professional :: Why Does Image Distort When Move The Bones

Oct 28, 2011

[URL] I just watched a tutorial where they apply bnes to deform a "bitmap" image. Their image didn't distort like my image. Why is this happening. I imported an image then I "selected "break apart" and then I added bones to it. When I move the bones it makes the image distort, but in this tutorial here the image doesn't distort. What is wrong?

View 6 Replies

ActionScript 3.0 :: Distort The Dimension Of An Image Like From Left Side Little Small And From Right Large?

Nov 28, 2011

How to distort the dimension of an image like from left side little small and from right large.

View 1 Replies

Actionscript 3 :: Change Bitmap Image In Flash?

Nov 15, 2011

I've been tasked to write a chat engine in actionscript3 (AIR) and every chat message has an image of the poster associated with it. So I have 5 chat messages on the screen at any one time but it will be obvious that the images associated with message e.g. #1 changes all the time because the last person posting is different.

What I believe is wrong is to use the .addChild method every time I need to replace the image because it will just keep creating more stuff on the stage. What I tried to do is the code below but it refuses to update the image. The way I thought it should work[code]...

View 1 Replies

Flash - How To Convert Bitmap Data Into Image File In AS3

Apr 30, 2010

I want to convert bitmap data to an image file like jpg or png file in AS3.

View 1 Replies

Flash :: Using Bitmap Data To Draw Massive Image?

Feb 18, 2011

I am making a snow boarding game in AS3. The problem I am having is that I want to leave a trail in the snow behind the board.

I have had a think and feel that the best way of achieving this would be to use the lineTo() method to draw a line form the snowboards previous position to its current position. If I do this all of the way down the slope I would end up with a line almost 23000 pixels long which seems extremely large and will have a major impact on performance.

If I were to convert the trail movieclip to a bitmap would it improve performance? I am targeting a minimum of flash player 9 which I have found to have issues when handling bmp's over 2880 pixels so I think this method might not work.

View 2 Replies

Flash :: Get And Display The Levels On Color Or Bw Bitmap Image?

Apr 26, 2011

In Photoshop there is a tool that lets you adjust the levels of an image. I'd like to be able to do the same thing. I've seen examples online that show the levels but they are for each individual color channel (red, green, blue or alpha or CMYK) but not a combined view like in Photoshop Input Levels (see below).Also, as a bonus is there a way to find the best shadow and highlight input level settings, basically the settings the Auto level button determines?Update:I think I'm closer but I'm not sure. Here is the method I pieced together. The first image is my results and the second is Photoshop results both analyzing the Google logo:Update 2:Ok I think I got it. The code is below. It's mostly working all the time, mostly. Additional credits:Photoshops results:

Levels method:
/**
* Get a histogram of the grayscale levels

[code].....

View 1 Replies

Actionscript :: Using Bitmap And BimapData To Load A Background Image In Flash CS5?

Nov 9, 2010

I'm making a flash movie and I'd like to load a background image into my SWF and paint it to the stage using the Bitmap and BitmapData classes. Am I approaching this properly? What code gets the image from the Loader to the BitmapData? Also, how do I get the image to show in the background? I've never understood the BitmapData/Bitmap metaphor, explanations, code samples and tutorial links.

View 1 Replies

ActionScript :: Flash - Bitmap Caching Vs Image Asset Performance

Mar 14, 2011

i've created a full spectrum color wheel Sprite object that is composed of 1440 vector triangles, or slices if you will. since i want to animate the color wheel, i've activated the display object's cacheAsBitmap property. however, caching the vector as a bitmap does not increase performance during animation it remains slow, jumpy. importing a PNG screenshot of the color wheel into the library with lossless compression, converting it to a Sprite, and rotating this new image asset performs great during animation. why does an uncompressed PNG image asset import out perform the same vector image with cacheAsBitmap property set to true?

View 1 Replies

ActionScript 3.0 :: Possible In Flash To Get Specific Frame In Flv Video As Bitmap / Image?

Aug 6, 2010

Is it possible in flash to get a specific frame in a flv video as a bitmap or an image.?

i saw an example of it online but as the comments said it didnt work and some said that its not possible.

View 4 Replies

Flash Not Allowing To Curve / Distort Rectangle Edge?

Dec 31, 2011

With the select tool, I placed my mouse over the edge & it changed to the little curve sign, but when I dragged it, it just moved the rectangle. Same thing when using the transform tool.

View 3 Replies

ActionScript 3.0 :: Distort MovieClip - It Must Work With Flash Player 9?

Feb 18, 2009

im searching for a class or way to disort my movieclip like this. but all i can found are ac1 or ac2 workarounds . it must work with flash player 9

View 3 Replies

Actionscript 3 :: Flash: Bitmap Inaccuracy - Image Appears To Shift One Pixel?

Oct 12, 2011

I load a bitmap to the stage, it's a GIF and set to lossless compression. I have ensured its coordinates are integers and have not allowed smoothing (smoothing somewhat fixes the issue but reduces quality of the image).The problem is the image appears to shift one pixel to the left and add that pixel on to the right side meaning one side has no border and the other a double border.The original bitmap does not have this issue, and there is no transparency .etc in the image.

View 1 Replies

ActionScript 3.0 :: Loading The Image Binary (after HTTP Request Headers Are Removed) As A Bitmap In Flash?

Sep 11, 2010

I'm building an image viewer that has violent content (video games), and so it requires users to enter their birthdays. Problem is that because of company policy, I can't expose any of the source images being viewed in the event that someone might use their resources/net tabs (or just sniff the request) and get the direct link to the image. (I know that they could screenshot it, but that's out of anyone's control and not something I'm worried about.)Is there anyway to inherently mask loaded resources (images)? I've been using sockets, which is great, but there's also the problem of actually loading the image binary (after HTTP request headers are removed) as a Bitmap in Flash.

View 4 Replies

Distorting A Bitmap Image?

May 27, 2009

Okay, I know this is a stupid question but, if you bring in a jpg or png image and either convert it to a graphic or a movie clip, or just leave it as an image, is there a way to distort the image other than scaling, rotating and skewing it. For example, I want to change the perspective of an image the way I do in photoshop.Let's say the image is a house, in photoshop, you can take the house and make it look like a trapezoid shape, you know, wider at the bottom than at the top  Is there a way to do this using flash tools? Envelope distorting, if you break the image apart doesn't really work.

View 1 Replies

ActionScript 3.0 :: Cut Up A Bitmap Image Into Pieces?

Mar 9, 2011

I'm trying to cut up a bitmap image into pieces, and then tween each piece away sequentially. Cutting up the pieces and placing those pieces in an array is where I'm at. But to tween each piece on a timer is where I'm stuck; here's the code:

package
{
import flash.display.*;

[code]....

View 6 Replies

Flex :: Load More Then One Image In Bitmap?

Oct 8, 2010

i can't download more then one image from url

function processXML(e:ResultEvent):void
{
myXML = e.result as XML;

[Code].....

View 1 Replies

Create An Image Control From Bitmap?

Apr 12, 2011

I need to create an Image control from a Bitmap because I have an ItemRedender to use in a List control.

I'm trying to show a list of images (Bitmaps) in a List control and I couldn't by now.

View 2 Replies

AS3 :: Instagram-like Image (bitmap) Filters?

Oct 12, 2011

I'm wondering if there is some library (or maybe tutorial?) which can produce Instagram-like color tweaks for Bitmap/BitmapData objects in AS3. Color Matrix/ColorMatrixFilter will not be probably able to achieve such as results or yes?

View 1 Replies

ActionScript 3.0 :: Replacing A Mc With A Bitmap Image?

Nov 16, 2010

I am trying to replace a movie clip image with a bitmap image and now the code to fire the image(missile) doesn't work. I get these errors:1119: Access of possibly undefined property dx through a reference with static type flash.display:Bitmap.1119: Access of possibly undefined property dy through a reference with static type flash.display:Bitmap

package {
import flash.display.MovieClip;
import flash.events.Event;

[code]....

View 1 Replies

ActionScript 3.0 :: Image Loader To Bitmap

Apr 10, 2012

I'm loading a list of urls of pics from an fql query, then loading those urls with the loader class using this function:_loc is a MovieClip that holds the picture,[code]In onMyPictureLoaded I would like to get the bitmapdata out of loader.content and scale the image (smooth it too) that way, and then reattach it to the _obj MovieClip, but I'm having trouble reattaching that new bitmap to the object.It seems the problem is more to do with events and not having the ability to pass information (_loc, for example) from:loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,onMyPictureLoaded); to the onMyPictureLoaded function.

View 11 Replies

ActionScript 2.0 :: Distort A Loader In It?

Aug 11, 2009

How can I distort a Loader in AS2?

View 6 Replies

ActionScript 2.0 :: Possible To Distort Movieclip?

Jul 26, 2004

I have a movieclip that I load a jpg image into. I can rotate the movieclip & scale it in x & y directions which is great BUT has anyone got any ideas how I could distort it into a trapezium using actionscript?[code]Scaling the y is fine, but I effectively want to scale the x dimension by different amounts depending on what the y position is.

View 3 Replies

ActionScript 2.0 :: Move MC And Distort?

Mar 19, 2004

How do I make this effect... to Drag a CD image, (about 300x300 pxls) to the right of the stage and at the same time, while dragging, making the cd to flip in position to get inside a CD drive or something? When realesed inside the drive, a music clip would play. If release outside, go back in initial position.

View 1 Replies

ActionScript 3.0 :: Overlaying 1 Bitmap Image On Another On A 3d Sphere?

May 24, 2009

The basic concept: I want to at runtime overlay (or paste or whatever) one bitmap image asset onto another. The original image asset is a texture on a 3d sphere.Example:3D Sphere with earth texture applied to it. Put a cloud on the earth texture and have cloud move along the earth.

Caveats:Can't use any composite materials because I take a serious perf hit. Want to try working only with bitmaps to see if it is faster.I've gotten this far but don't know how to fill rectangle with jpeg file and certainly have no idea where to go from here..earthBitmap= new BitmapData( 256, 256, true); fillRect will only do a color ... I need what fills a rect with jpeg image and how to edit a bitmap on the fly.

View 2 Replies

ActionScript 3.0 :: Bitmap Screenshot Of Dragged Image?

Nov 17, 2010

I have an masked image that is externally loaded onto my stage that the user can drag and position.I then need to be able to record or save where and how the user has positioned the image by either -taking a bitmap copy of where the user has positioned the image (my first and easiest thought of how to do this) -or is it possible to get X and Y co ordinates of where they have positioned it I have a movie currently set up but when the user clicks 'save and continue' it takes a copy of the original position of the image - not from where you have last dragged it to?Full code and attached fla file below

Code:

stop();
//--------------
// Loader
//--------------
var imageP1:Loader = new Loader();

[code]....

View 1 Replies







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