Ejemplo n.º 1
0
 internal Canvas(DocumentFiltersBase parent, IGRStream stream, CanvasType type, string options)
 {
     _type         = type;
     _options      = options;
     _stream       = stream;
     _streamHandle = stream.NewWritableStreamPtr();
 }
Ejemplo n.º 2
0
            public static IntPtr Alloc(IGRStream stream, bool writable)
            {
                var payloadSize = Marshaler.SizeOf <Payload>();
                var retval      = Marshal.AllocHGlobal(payloadSize);
                var self        = StreamHolder.Instance.Register(stream);
                var payload     = new Payload
                {
                    Open            = Methods.Instance.Open.Item1,
                    Read            = Methods.Instance.Read.Item1,
                    Seek            = Methods.Instance.Seek.Item1,
                    Close           = Methods.Instance.Close.Item1,
                    Write           = Methods.Instance.Write.Item1,
                    StreamObjectRef = self
                };

                Marshaler.StructureToPtr <Payload>(payload, retval, false);

                if (!writable)
                {
                    Error_Control_Block ecb = new Error_Control_Block();
                    DocumentFiltersBase.Check(ISYS11df.IGR_Extend_Stream(retval, Methods.Instance.StreamCallback.Item1, retval, ref retval, ref ecb), ecb);
                }

                return(retval);
            }
Ejemplo n.º 3
0
 internal Canvas(DocumentFiltersBase parent, System.IO.Stream stream, CanvasType type, string options)
 {
     _type         = type;
     _options      = options;
     _stream       = new IGRStreamBridge(stream);
     _streamHandle = _stream.NewWritableStreamPtr();
 }
Ejemplo n.º 4
0
        internal Extractor(DocumentFiltersBase parent, byte[] byteArray)
        {
            _bytes       = GCHandle.Alloc(byteArray, GCHandleType.Pinned);
            _bytesLength = (uint)byteArray.Length;

            Error_Control_Block ecb = new Error_Control_Block();

            Check(ISYS11df.IGR_Make_Stream_From_Memory(_bytes.AddrOfPinnedObject(), new System.IntPtr(_bytesLength), IntPtr.Zero, ref _streamHandle, ref ecb), ecb);
        }
Ejemplo n.º 5
0
 internal Extractor(DocumentFiltersBase parent, System.IO.Stream stream)
 {
     _stream       = new IGRStreamBridge(stream);
     _streamHandle = _stream.NewStreamPtr();
 }
Ejemplo n.º 6
0
 internal Extractor(DocumentFiltersBase parent, IGRStream stream)
 {
     _stream       = stream;
     _streamHandle = stream.NewStreamPtr();
 }
Ejemplo n.º 7
0
        internal Extractor(DocumentFiltersBase parent, string filename)
        {
            Error_Control_Block ecb = new Error_Control_Block();

            Check(ISYS11df.IGR_Make_Stream_From_File(filename, 0, ref _streamHandle, ref ecb), ecb);
        }
Ejemplo n.º 8
0
 internal Extractor(DocumentFiltersBase parent)
 {
 }
Ejemplo n.º 9
0
 internal Canvas(DocumentFiltersBase parent, string filename, CanvasType type, string options)
 {
     _type     = type;
     _options  = options;
     _filename = filename;
 }