How to copy a TsgDXFImage
Posted: 22 Nov 2006, 13:16
Dear Sergey,
I am trying to make a copy of an already loaded TsgDXFImage so that I can keep a snapshot of the drawing before the user has done any changes onto it ! I have used BaseImg.Assign(TsgDXFImage(sgPaintBox.Picture.Graphic)) but instead of making a copy of it, BaseImg refers to the original image, thus, when I try to revert to it, I get the changed image. I do not want to use the LoadFromFile method since the file is quite big and it takes some time to load it.
Thanks in advance
George
I am trying to make a copy of an already loaded TsgDXFImage so that I can keep a snapshot of the drawing before the user has done any changes onto it ! I have used BaseImg.Assign(TsgDXFImage(sgPaintBox.Picture.Graphic)) but instead of making a copy of it, BaseImg refers to the original image, thus, when I try to revert to it, I get the changed image. I do not want to use the LoadFromFile method since the file is quite big and it takes some time to load it.
Thanks in advance
George