Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Re: From/To Bitmap question

  •  16 Mar 2007, 9:58 AM

    Re: From/To Bitmap question

    FromBitmap(...) creates a copy of the Bitmap data and places it in a new AtalaImage object.  However FromBitmap(..., true) takes ownershop of the Bitmap data and stores a reference to the Bitmap internally.  As long as you don't dispose the Bitmap that was passed in, it's a safe way to convert a Bitmap to an AtalaImage.  The garbage collecter wont collect the Bitmap data until the the returned AtalaImage is out of scope or disposed.


    Bill Bither
    Atalasoft
    Filed under: ,
View Complete Thread