Re: Graphics.ScaleTransform vs. Graphics.Transform.Scale

From: Andrew S \(Infragistics\) (productmanager_at_infragistics.com)
Date: 03/15/04


Date: Sun, 14 Mar 2004 23:42:40 -0500

Actually there is a difference - asking for the transform of the graphics
object will create a copy of the transform used by the graphics object. The
Matrix class is disposable so unless you plan on actually making use of the
matrix and then disposing it when you're done, use the ScaleTransform method
on the graphics class itself.

"cody" <please_dont.spam.deutronium@gmx.de> wrote in message
news:eI3JBwcCEHA.1548@TK2MSFTNGP12.phx.gbl...
> > > What is the difference?
> >
> > There isn't. It's two methods of doing the same thing.
>
>
> Thanks. Thats somewhat stupid. I do not see any sense why they did it this
> way.
> They wanted make things easier but they made them more complicated.
> And that in an OOP Framework! All matrix methods belongs to the matrix
class
> and not to the graphics class!
>
> --
> cody
>
> [Freeware, Games and Humor]
> www.deutronium.de.vu || www.deutronium.tk
>
>



Relevant Pages

  • Re: Graphics transformations performance
    ... modifying the transform should have next to zero performance ... Graphics Transform stack and Flood-Filling ... One option to draw them is to use the Graphics object ... Another way i am considering is to calculate the transformed pixel points ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Problem with Graphics Class...
    ... Please post the code that causes the exception. ... Graphics Transform stack and Flood-Filling ... "Sujith Manuel" wrote in message ... > Iam also using Disposemethod of Graphics Class. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Extending/replacing a class without a public constructor
    ... > I'm trying to write a test suite for a graphics-heavy app that uses ... These apps use the Graphics class to do their screen updates. ...
    (comp.lang.java.programmer)
  • Extending/replacing a class without a public constructor
    ... I'm trying to write a test suite for a graphics-heavy app that uses ... These apps use the Graphics class to do their screen updates. ...
    (comp.lang.java.programmer)
  • Extending/replacing a class without a public constructor
    ... I'm trying to write a test suite for a graphics-heavy app that uses ... These apps use the Graphics class to do their screen updates. ... static factory method ). ...
    (comp.lang.java.developer)