Temporarily disables the fixed state of every AnnObject in the AnnContainer.
public virtual int PushFixedState() Public Overridable Function PushFixedState() As Integer
public:virtual int PushFixedState();
size of the fixed state stack before the call to PushFixedState
Calls AnnObject.PushFixedState on all AnnObject in the AnnContainer. Fixed annotations are independent of the Transform. The result is that they do not scroll or move with the underlying image. For more information, refer to AnnObject.PushFixedState.
using Leadtools;using Leadtools.Annotations;using Leadtools.WinForms;// This sample paints annotations (both 'fixed' and non'fixed) at a zoom factor of 2// on the Graphics object gprivate void AnnContainer_PushFixedState(Graphics graphics, AnnContainer annContainer){Matrix transformContainer = annContainer.Transform;Matrix transformOriginal = annContainer.Transform.Clone();// Temporarily disable 'fixed' annotations for paintingannContainer.PushFixedState();// Paint the container at 2xMatrix transformZoom2x = new Matrix(2, 0, 0, 2, 0, 0);transformContainer.Multiply(transformZoom2x);annContainer.Draw(graphics);// Restore original container transformannContainer.Transform = transformOriginal;// Enable 'fixed' annotionsannContainer.PopFixedState();}
Imports LeadtoolsImports Leadtools.AnnotationsImports Leadtools.WinForms' This sample paints annotations (both 'fixed' and non'fixed) at a zoom factor of 2' on the Graphics object gPrivate Sub AnnContainer_PushFixedState(ByVal graphics As Graphics, ByVal annContainer As AnnContainer)Dim transformContainer As Matrix = annContainer.TransformDim transformOriginal As Matrix = annContainer.Transform.Clone()' Temporarily disable 'fixed' annotations for paintingannContainer.PushFixedState()' Paint the container at 2xDim transformZoom2x As Matrix = New Matrix(2, 0, 0, 2, 0, 0)transformContainer.Multiply(transformZoom2x)annContainer.Draw(graphics)' Restore original container transformannContainer.Transform = transformOriginal' Enable 'fixed' annotionsannContainer.PopFixedState()End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
