BitmapData

is it possible to create a BitmapData object from a responsible external bitmap? or does have be in the library?

Thoughs FO who know... I did a search of this forum

import BitmapData
import flash.display.BitmapData;
stop the movie so he repeats again and again
Stop();
load a photo into an mc on the stage
content_mc.loadMovie ("flash.jpg", 1);
Create a function that runs all the images (only for this example, it continues to run and you will not want that)
_root.onEnterFrame = function() {}
It's the little interesting, basically the following line is your preloader 100% action, the captain has actually been loaded until we can do this
If (_root.content_mc.getBytesLoaded () is {_root.content_mc.getBytesTotal ()})
Create a variable to hold the bitmapdata news
myBitmapData = new flash.display.BitmapData (content_mc._width, content_mc._height, true, 0x00FFFFFF);
copy the bitmap into the BitmapData instance variable that we just created
myBitmapData.draw (_root.content_mc);
now attach it to a different mc for the sake of the example
_root.content_mc2.attachBitmap (myBitmapData, 1, "auto", true);
rotate the two movieclips so you can see the difference
_root.content_mc._rotation = 30;
_root.content_mc2._rotation = 30;
}
};

Thanks to myFlash83

Tags: Adobe Animate

Similar Questions

  • The 2.0 beta bug? Drawn to BitmapData with matrix TextField is compensated

    Battery Guru, the text labels for the various "ticks" on three axes is drawn into a BitmapData with a call to draw() with a TextField and a matrix.  Under 2.0.0.3778 the position of this text has changed unexpectedly.

    I will work on this narrowing in a standalone reproducible sample, but I was just wondering if anyone had noticed a similar problem with a model code like BitmapData.draw (someTextfield, someMatrix). I suspect that this implies some width measures I do with TextField.textWidth but it is speculation for now.

    The main point is that it works differently under 2.0.  The screenshot below shows the version of the guru of the battery that runs under version 2.0 beta. Normally, you would see numbers stacked vertically along the left and right, % levels and wattage marking, and the hours from 10 to 0 along the bottom lined up with the left and right edges.  As you can see, the number of hours are shifted to the right (with 0 today disappeared), while the other sets are missing but presumed to be staggered and simply invisible accordingly.

    The second glance, it does not seem to involve the graphic subsystem at all and is probably my fault.

    I was iterating over an object that contains data describing the axis labels. The loop seems to have a dependency on the order in which the axes are processed, and this order was changing according to the particular environment/version involved.

    I forced a fixed order for now, and all three environments I tested in (sim 1.0.7, sim 2.0.0 and PB 1.0.8) are behaving in the same way. Also "bad" for the moment, but it seems that something I can improve in my own code will be just.

    Basically a false alarm... :-(

  • IconButton you click on display for bitmapdata vs png

    When I put a PNG image in an IconButton and I click on the button (in the Simulator), it automatically appears for me that I clicked on this button. But when I put in the IconButton BitmapData and I click the button, there is no visual change to the button to indicate that I just clicked it. I know I clicked on it, because when I do the resulting image of BitmapData much smaller the IconButton, I can see the area around the image button changes appearance similar to that when I used the PNG.

    Why? I am responsible for a fairer behavior because I use a different data source for the icon? Or maybe I'm supposed to the BitmapData in a way of installation? It's as if the image of the BitmapData is sitting at the top of the key and not in the button.

    Gary

    Make your transparent bitmap:

    var bmdata:BitmapData = new BitmapData(sym.width - 50, sym.height - 50, true);
    
  • Load Image and removes BitmapData

    Hello.

    I use the qnx.ui.display.image class to load an image that is in the package with the application, and it works fine. However, I'm looking at a bunch of functions that take BitmapData format of an Image, and I wonder how to load an image in a format of BitmapData, or how to convert the qnx.ui.display.image class to give me the BitmapData form.

    Thanks in advance.

    Note that the Image can take a URL, Bitmap, or BitmapImage in setImage().  And it has a cache property that is a qnx.utils.ImageCache.

    Apparently, qnx.utils.ImageCache.getImage () returns a BitmapData.  Looks like you need to know what URL cache stores under.  Not sure how you would find out that unless the image had been loaded in the first place of a URL.

    The BitmapData docs say you can load with flash.display.Loader, then it can be assumed if you were loading from a URL that you would get directly, bypassing the ImageCache stuff.

    (I don't have a direct answer, sorry.)

  • BitmapData byte]

    How to convert a byte [] to BitmapData?

    If you have a ByteArray, you apparently would be able to use a Loader object, call loadBytes() on it and retrieve the bitmap as indicated in the responsedata.

  • Why do I get this message ArgumentError: Error #2015: invalid BitmapData.

    ArgumentError: Error #2015: invalid BitmapData.

    at flash.display::BitmapData/ctor()

    at flash.display::BitmapData()

    at com.king.flash.spaceland.texture::TextureManager/clearDynamicAtlasResource()

    at com.king.flash.spaceland.texture::TextureManager/clearDynamicAtlas()

    at com.king.flash.spaceland.texture::TextureManager/createDynamicAtlas()

    at com.king.ragnarok.spaceland.atlas::DynamicAtlasFactory/createDynamicAtlas()

    at com.king.stritz.juego::ProfilePictureLoader/load()

    at com.king.stritz.juego::ProfilePictureLoader/loadProfilePictureWithSocialUser()

    at com.king.stritz.juego::ProfilePictureLoader/loadProfilePicture()

    at com.king.stritz.view.spaceland.diorama::DioramaPortraitsView/setUpCurrentUser()

    at com.king.stritz.presenter.diorama::DioramaPortraitsPresenter/show()

    at com.king.stritz.presenter.diorama::DioramaPresenterImpl/show()

    at com.king.stritz.state.main::DioramaMainState/onEnterState()

    at com.king.stritz.state::TransitionAction/onTransition()

    at se.fearless.fettle.impl::Transition/onTransition()

    at se.fearless.fettle.impl::TransitionModelImpl/forceSetState()

    at se.fearless.fettle.impl::TransitionModelImpl/fireInternal()

    at se.fearless.fettle.impl::TransitionModelImpl/fireEvent()

    at se.fearless.fettle.impl::StateMachineImpl/fireEvent()

    at com.king.stritz.state::StateChanger/requestStateChange()

    at com.king.stritz.state.main::PerformanceCheckState/changeState()

    at com.king.stritz.state.main::PerformanceCheckState/onEnterState()

    at com.king.stritz.state::TransitionAction/onTransition()

    at se.fearless.fettle.impl::Transition/onTransition()

    at se.fearless.fettle.impl::TransitionModelImpl/forceSetState()

    at se.fearless.fettle.impl::TransitionModelImpl/fireInternal()

    at se.fearless.fettle.impl::TransitionModelImpl/fireEvent()

    at se.fearless.fettle.impl::StateMachineImpl/fireEvent()

    at com.king.stritz.state::StateChanger/requestStateChange()

    to Function/PreloadingState.as$ 0:anonymous()

    to Function/Assets.as$ 1:anonymous()

    at com.king.ragnarok.spaceland.assets.zip::ZipAssetLoader/callback()

    to Function/ZipAssetLoader.as$ 0:anonymous()

    to Function/ImageDecoder.as$ 0:anonymous()

    to Function / onComplete)

    Hi Luetta,

    Can you please share how you are initializing BitmapData in your AS code (also provide little detail of you app you use PNG or ATF)? Looks like the size of bitmapData is more than expected.

    -Nimisha

  • I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    var z1:Bitmap = new bitmap;

    Z1. BitmapData = new Z1 (1,1);

    yourDisplayObject.addChild (z1);

  • Dynamically loaded Bitmapdatas zip are not approved locally and therefore cannot be changed

    It is a very strange problem.

    I use external resources to a game that I do. One of the resources is a zip file containing 100 images (thumbnails). The goal of this zip is simply that he would load these resources much easier, simpler and as I am storing these resources on Amazon S3, significantly cheaper.

    He worked without a hitch, until I moved and ran the swf in a location not approved.

    Now, when I try to load the first thumbnail I get this:

    Charger/get content())

    SecurityError: Error #2148: SWF file file:///C|/Users/Tom/Desktop/Jigsaw.swf cannot access the resource local file:///C|/Users/Tom/Desktop/Jigsaw.swf/[[DYNAMIC]]/1. Only SWF files local local - with system files and trust can access local resources.

    This happens when I try and access Loader.content, I need to do what some bitmapdatas will have to be changed after loading.

    I ran into a similar error when you try to originally load external resources and convert them into bitmapDatas. This has been fixed by using a policy file.

    I thought the policy file was the problem, but then I tried to integrate the .zip in the swf file rather than load it externally, like this:

    [Embed (source = "... / res/images/thumbnails.zip", mimeType = "application/octet-stream" "")]

    But even that threw up the same error.

    What is happening is that a byteArray is skillfully transposed in a BitmapData, but in the process, it becomes not approved by Flash.

    I can't find any way to convert this byte.

    I tried using several different class zip as3 packages, but they all fall into the same obstacle.

    Here's the key code:

    zip: FZip var = new FZip();

    zip.loadBytes (zipData);

    var file:FZipFile = zip.getFileByName ("image1.jpg");

    var loader: Loader = new Loader();

    loader.loadBytes (file.content);

    root.addChild (loader);

    loader.addEventListener ("click", Function {}

    var bd:BitmapData = e.target.content.bitmapData;

    bd.applyFilter (bd, bd.rect, new focus(), new BlurFilter (20, 20, 1));

    } );

    This is the part that is really weird... When I test it, it works fine, when I download online, very well. The only time I get the error is when the SWF file is run locally, but in an untrusted location.

    Obviously, these security measures are a bit blurry if it works without a hitch in line, but does not on-site, expect that it is the other way around.

    As far as I know there's nothing potentially dangerous with my code. It is from a trusted location (the policy file works).

    I found another unfortunate person who encountered the same problem, but never got a response:

    http://www.ActionScript.org/forums/showthread.php3?t=261853

    I've tried EVERYTHING. bitmapdatas loaded dynamically zippers are unmodifiable without apparent reason... unless the swf is opened in a trusted location or anywhere online.

    If you want your trusted local files, it adds trust files setting: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Limit of BitmapData

    Hello

    I get a flash error when creating many BitmapDatas (I don't know of a bitmap that is too big).

    I have created for you a class copy-and - paste that reproduces the error.

    Just create a class problem file copy paste this code, then instantiate this class in your main class (New Issue()).

    package 
    {
    
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.MovieClip;
              import flash.events.Event;
    
              public class Issue extends MovieClip
              {
    
                        private var mc:MovieClip;
    
                        public function Issue():void
                        {
                                  addEventListener(Event.ENTER_FRAME, eachFrame);
    
                                  mc = new MovieClip();
                        }
    
                        private function eachFrame(e:Event):void
                        {
                                  for (var i:uint = 0; i < 100; i++)
                                  {
                                            createBitmap();
                                  }
                        }
    
                        private function createBitmap():void
                        {
                                  var bm:Bitmap = getBitmap();
    
                                  mc.addChild(bm);
                        }
    
                        private function getBitmap():Bitmap
                        {
                                  var bmd:BitmapData = new BitmapData(500, 500);
    
                                  return new Bitmap(bmd);
                        }
    
              }
    
    
    }
    
    

    The error I get:

    ArgumentError: Error #2015: Invalid BitmapData.
     at flash.display::BitmapData/ctor()
     at flash.display::BitmapData()
    

    I noticed something is when to reduce flash size bitmap will produce bitmaps more before the error.

    By multiplying:

    Bitmaps created before the error has been generated x each BitampData size (example BitmapData size: 500 x 500), the total amount of pixels generated until the error has been generated is very similar: more 400000000.

    Amount of the bitmaps generated until the error has been generated, in bulk of 100:

    1600: 500 x 500

    2600: 400 x 400

    4800: 300 x 300

    Creating in smaller bulk will lead to more precise figures, but I think I'm onto something here - deliberate limit flash?

    more likely, it is the limit of your ram.

  • Blend two bitmaps in a new BitmapData, using a blend shader

    Hello

    I have:

    Two images of the same size as bitmap BitmapData.

    I want to:

    A largest BitmapData, with the two images mixed in a slope like that...

    1st row: [BitmapData 1]

    2nd row: [BitmapData BitmapData 2 1 mixed up on the top of the page, alpha 0.1]

    Row 3: [1 BitmapData with BitmapData 2 mixed up on 0.2, alpha]

    Row 4: [1 BitmapData with BitmapData 2 mixed on 0.3, alpha]

    ....

    Line n: [BitmapData [2]

    ------------------------------------

    I can easily implement this using the standard alpha blending. However, I would use my own algorithm of mix, and do it with actionscript is too slow. Therefore, I would like to implement the merge as a Pixel Bender shader function. I came here to make a function that works with the standard alpha blending and no shader custom involved:

    protected function createGradientLookupTable( bitmapAtBlend0:BitmapData, bitmapAtBlend1:BitmapData, steps:uint ):BitmapData {
        var gradient:BitmapData = new BitmapData( 256, bitmapAtBlend0.height * steps );
        var translationMatrix:Matrix = new Matrix();
        var alphaTransform:ColorTransform = new ColorTransform();

        for( var row:int = 0; row < steps; row++ ) {
            gradient.draw(bitmapAtBlend0, translationMatrix);
            alphaTransform.alphaMultiplier = row / ( steps - 1 );
            gradient.draw(bitmapAtBlend1, translationMatrix, alphaTransform );
            translationMatrix.translate( 0, bitmapAtBlend0.height );
        }

        return gradient;
    }

    This method works. At first, I did a fusion of shader to Pixel Bender, just to check if I can load into my Flash Builder project and operate standard alpha. This filter works in Pixel Bender 2.5:

    <languageVersion : 1.0;>
    kernel BlendHCL
    <   namespace : "com.yadayada";
        vendor : "Yada Yada";
        version : 1;
        description : "Blends colors using hue chroma luma";
    >
    {
        input image4 src1;
        input image4 src2;
        output pixel4 dst;

        parameter float alpha;

        void
        evaluatePixel()
        {
            float4 pixelBottom = sampleNearest(src1,outCoord());
            float4 pixelTop = sampleNearest(src2,outCoord());

            dst = pixelBottom + ( pixelTop - pixelBottom ) * alpha;

        }
    }

    Don't mind the description etc., currently it's supposed to only must accept a parameter alpha and mix using the standard alpha blending. Just to see I can make it work. Here is my Actionscript code is modified to use the custom mixer, this code does NOT work:

    protected function createGradientLookupTable( bitmapAtBlend0:BitmapData, bitmapAtBlend1:BitmapData, steps:uint ):BitmapData {
        var gradient:BitmapData = new BitmapData( 256, bitmapAtBlend0.height * steps );
        var translationMatrix:Matrix = new Matrix();
        var bitmap1:Bitmap = new Bitmap( bitmapAtBlend1 );
        var blendShader:Shader = new Shader( blendShaderCode );

        for( var row:int = 0; row < steps; row++ ) {
            gradient.draw(bitmapAtBlend0, translationMatrix);
            blendShader.data.alpha.value = [ row / ( steps - 1 ) ];
            bitmap1.blendShader = blendShader;
            try {
    //            gradient.draw( bitmap1, translationMatrix ); // doesn't work
                gradient.draw( bitmap1, translationMatrix, null, BlendMode.SHADER ); // doesn't work either
            }
            catch( e:Error ) {
                trace( "Error happened! " + e.message ); // No error messages reported
            }
            translationMatrix.translate( 0, bitmapAtBlend0.height );
        }

        return gradient;
    }

    This code change does not report the errors, it is just as if the alpha is always 1.0. The second image completely replaces the first. This is the expected result if the shader blend is not implemented at all. All the example code that I find using a blend shader, mixes just the colors directly on the screen, not in a new Bitmap or BitmapData object. Can anyone help?

    PS: Debugging in Flash Builder 4.7 and inspect the variables indicate that I have an object valid shader (blendShader).

    It seems to me I couldn't do it as I wanted. Instead, I created a shader that could create the gradient while only once and actually an object instance ShaderJob in Flash to do the job. Here is the code of the shader which results from:

    
    
    kernel BlendHCL
    <   namespace : "com.yadayada";
        vendor : "Yada Yada";
        version : 1;
        description : "Blends colors using hue chroma luma";
    >
    {
    
        input image4 src1;
        input image4 src2;
        output pixel4 dst;
    
        parameter float imageHeight
        <
            minValue:     1.0;
            maxValue:    64.0;
            defaultValue: 2.0;
            description: "The height of the images that will be blended in the gradient result";
        >;
    
        parameter float steps
        <
            minValue:      2.0;
            maxValue:   1024.0;
            defaultValue: 64.0;
            description: "The number of shades in the gradient";
        >;
    
        void
        evaluatePixel()
        {
    
            float2 sampleCoord = outCoord();
    
            sampleCoord.y = mod( sampleCoord.y, imageHeight );
    
            float4 pixelBottom = sampleNearest(src1,sampleCoord);
            float4 pixelTop = sampleNearest(src2,sampleCoord);
    
            float alpha = floor( outCoord().y / imageHeight ) / ( steps - 1.0 );
    
            dst = pixelBottom + ( pixelTop - pixelBottom ) * alpha;
    
        }
    }
    
    

    The following Actionscript code:

              public function createGradientLookupTable(bitmapAtBlend0:BitmapData, bitmapAtBlend1:BitmapData, steps:uint):BitmapData {
                   var shader:Shader = new Shader( blendShaderCode );
    
                   shader.data.imageHeight.value = [ Number( bitmapAtBlend0.height ) ];
                   shader.data.steps.value = [ Number( steps ) ];
    
                   shader.data.src1.input = bitmapAtBlend0;
                   shader.data.src2.input = bitmapAtBlend1;
    
                   var result:BitmapData = new BitmapData( 256, bitmapAtBlend0.height * steps );
    
                   var shaderJob:ShaderJob = new ShaderJob(shader, result);
    
                   shaderJob.start( true );
    
                   return result;
    
              }
    
    
    

    It worked. The shader still conducting a standard alpha blending, but now I go to do the actual shader of coding.

  • is it possible to transform a bitmap/bitmapData class

    Is there a way I can transform the content of a class to a bitmap and use this image as many times as I want. In my case, I create this class

    public class CreateRow_Col extends Sprite {
    
    
                        private var bgArray:Array = new Array();
                        private var myContainer:Sprite = new Sprite();
                        private var _Pat1:BitmapData = new Pattern1();
    
    
    
    
                        public function CreateRow_Col() {
                                  var bgClip = new Bitmap(_Pat1);
                                  var i:int = 0;
                                  var j:int = 0;
                                  while (bgClip.x < stage.stageWidth) {
                                            bgClip = new Bitmap(_Pat1);
                                            while (bgClip.y < stage.stageHeight) {
                                                      bgClip = new Bitmap(_Pat1);
                                                      myContainer.addChild(bgClip);
                                                      bgClip.x = bgClip.width * i;
                                                      bgClip.y = bgClip.height * j;
    
    
                                                      j++;
                                            }
    
    
                                            j = 0;
                                            i++;
                                  }
                                  addChildAt(myContainer,0);
                        }
    
    

    and then call it from the mainClass of the FLA

                             private var bf:CreateRow_Col = new CreateRow_Col();
                        private var bf2:CreateRow_Col = new CreateRow_Col();
    
    
                        public function MainClass_Test() {
                                  bf.x = 50;
                                  addChild(bf);
                                  bf2.x = 150;
                                  bf2.y = 350;
                                  addChild(bf2);
                        }
    
    

    But if I want to do like 500 instances of the class that will make the CreateRow_Col calculate 500times scene and fill it 500 times? or it will not?

    and even if it is not possible to make a class for bitmap and use this image as many times as you want.

    Looks like you need to use the class graphics capabilities, particularly beginBitmapFill() method.

    Here is the documentation of the Graphics class:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/display/graphics. HTML #beginBitmapFill)

    But first, you class CreateRow_Col will not work. You are referring to the scene in the constructor. Stadium is available ONLY when object is placed on the display list, UNLESS you have the reference to the scene when running.

    Anyway, if your need is to tiles with the same BitmapData Sprite - you don't need to jump through all these hoops. Try this code:

    package
    {
              import flash.display.Sprite;
              import flash.events.Event;
    
              public class CreateRow_Col extends Sprite
              {
                        public function CreateRow_Col()
                        {
                                  addEventListener(Event.ADDED_TO_STAGE, draw);
    
                        }
    
                        private function draw(e:Event):void
                        {
                                  removeEventListener(Event.ADDED_TO_STAGE, draw);
                                  graphics.beginBitmapFill(new Pattern1(), null, true, true);
                                  graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
                                  graphics.endFill();
                        }
              }
    }
    

    The use is the same as you showed in MainClass_Test.

    Post edited by: Andrei1

  • isValid in BitmapData parameter

    Hello

    I don't know if this has been asked before, but it would be difficult to add an isValid parameter to BitmapData?

    Currently, that's what I have to do to understand:

    try {myBitmapData.width ;}

    catch (error) {return ;}

    Unless I'm missing something and there is already something to help me.

    Thank you.

    This works if a BitmapData is null, not if it has been deleted.

  • turn the textfield in bitmapData

    Hello

    I found this example on the net, trying to show a textfield as bitmap instead of textfield.

    What is wrong with my code? trace ("my_txt") appears well 'country flags. Help, please

    import flash.display. *;

    var my_txt = "flags of countries."

    this.createEmptyMovieClip ('my_bm_mc', 400 + i);

    var bm:BitmapData = new BitmapData (my_txt._width, my_txt._height);

    BM. Draw (my_txt);

    my_bm_mc.attachBitmap (WB);

    my_bm_mc._x = 0;

    my_bm_mc._y = 0;

    trace (my_txt);

    you are confused a string with a textfield.  Difficulty that and your method of attachBitmap():

    var tf:TextField = this.createTextField("tf",1,0,0,200,40);

    var my_txtS:String = "flags of countries."

    TF. Text = my_txtS;

    this.createEmptyMovieClip('my_bm_mc',400);  I was not defined in your code

    var bm:BitmapData = new BitmapData (tf._width, tf._height);

    BM. Draw (TF);

    TF._visible = false;

    my_bm_mc.attachBitmap(BM,1);

  • AS3-the movieclips and Pixelation to bitmapdatas-how make sure managers are ready?

    Hey all

    I'm developing an AIR app with many animations and tests have shown that using bitmaps and GPU rendering to provide best performance for all models of mobile phones. I get normal vector animations of artists from the PPA and have built a system that traverses these animations during execution and draws content in bitmapdatas.

    My concern is a loop in the frames of the movieclip. If I have these lines of code:

    mc.gotoAndStop(i);
    bitmapData
    .draw(mc);

    I can't be sure that the frame got 'built' before being developed, and my tests with an Android Tablet this right - sometimes the frames are not drawn.

    This mc is the display of course list (we don't have need not return to the screen). So is there a way to ensure that the framework was built before drawing it to a bitmapdata? (and in the meantime FRAME_CONSTRUCTED, EXIT_FRAME, etc. is obviously slow and useless)

    any ideas?

    thanx

    Saar

    Sorry, MY BAD

    Waiting for FRAME_CONSTRUCTED is the answer!

    This thread may be closed or deleted?

    How to do?

  • SecurityError: Error #2123: security sandbox violation: BitmapData.draw:

    Hello

    I develop a swf in Flash Builder 4.7 to run in the FlashPlayer_sa.exe (11.5). Inside this application, I load another swf in the same folder and inside of it, I load a video from a subfolder.

    To have an effect of paging on my content, I use a copy of the bitmap of the original content. When I have my videos attatched I can do my copy bitmap (copypixels) of the content item and video inside. Now, the "funny" is when I put the video on null stream I get this violation sandboy error:

    SecurityError: Error #2123: security sandbox violation: BitmapData.draw: file:///P:/_projekte/...

    I also add my project folder to the trusted locations in settings global flah. It seems that the verification of the securety has a problem with a stream of the null value and acts like it is from a different domain. A way around this?

    Flash is probably looking for a null file.

    What is the full error message.

  • BitmapData with decimal values

    Hello

    I use bitmapdata feature with decimal value. But it takes only a round value. It's all possible ways to do... ?

    If I give as below,

    desBmp = new BitmapData (163,9, 192,9);

    It takes like,

    desBmp = new BitmapData (163, 192);

    I want the exact value to be considered as the width and height. Is there any option to do, of trying to help me.

    Kind regards

    Kelifaoui has.

    is not possible and there is no reason: you can't use a fraction of a pixel in the display.

    for smoothing, use the smooth parameter with the draw method.

Maybe you are looking for

  • Satellite Pro P100-109 is very slow for burning a DVD

    Hello I'm trying to copy a DVD movie with the pre-installed software RecordNow! but it takes a lot of time.Something like 40 minutes to copy the DVD to the HD and more than an hour to burn the DVD-R. Can someone help me?

  • Sparkle Framework

    Hello I am currently using a retina 15 MacBook Pro running OSX El Capitan thumbs. To increase the security on my computer about a year ago, I installed AVG AntiVirus which I sometimes run to check for some security issues. Recently, the antivirus has

  • where to download winder server 2003 r2 enterprise edition 32-bit

    Hello I need to install it on a vmware and do an upgrade for testing purposes. I tried to download this iso-> srv03_r2_2075_usa_x86fre_adsr2 which is an iso standard for window server 2003 r2 enterprise edition 32-bit but my vmware could not detect w

  • synchronize the Windows in my Iphone calendar

    I have a calendar on Windows Calendar I want to sync my iphone calendar.  How do I do that?

  • New Bug in CVI2013SP1?

    Hello In CVI2013, there was a bug (Bug No. 433769) when to change the uir file: change does not show upward, a need to rebuild the project, this seems to have been fixed, but now there's something else... I have a project with multiple source files a