DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / LockGdiOperations Property






In This Topic
    LockGdiOperations Property
    In This Topic
    Controls whether to use an explicit lock to prevent recurrent GDI operations from happening
    Syntax
    'Declaration
     
    
    Public Shared Property LockGdiOperations As System.Boolean
    'Usage
     
    
    Dim value As System.Boolean
     
    DicomGlobal.LockGdiOperations = value
     
    value = DicomGlobal.LockGdiOperations
    public static System.bool LockGdiOperations {get; set;}
    public read-write property LockGdiOperations: System.Boolean; static; 
    public static function get,set LockGdiOperations : System.boolean
    public: __property static System.bool get_LockGdiOperations();
    public: __property static void set_LockGdiOperations( 
       System.bool value
    );
    public:
    static property System.bool LockGdiOperations {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    This is false by default, as t is believed that these problems have been eliminated, but is left as an option to prevent rare but difficult to reproduce errors when different threads happen to use the GDI sub-system at the same time - e.g. when rendering labels through use of DicomImage.PrinterImage
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also