LibreOffice
LibreOffice 7.2 SDK API Reference
XImageConsumer.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef __com_sun_star_awt_XImageConsumer_idl__
20#define __com_sun_star_awt_XImageConsumer_idl__
21
23
24
25 module com { module sun { module star { module awt {
26
27 published interface XImageProducer;
28
29
38{
39
42 void init( [in] long Width,
43 [in] long Height );
44
45
49 void setColorModel( [in] short BitCount,
50 [in] sequence<long> RGBAPal,
51 [in] long RedMask,
52 [in] long GreenMask,
53 [in] long BlueMask,
54 [in] long AlphaMask );
55
56
67 void setPixelsByBytes( [in] long nX,
68 [in] long nY,
69 [in] long nWidth,
70 [in] long nHeight,
71 [in] sequence<byte> aProducerData,
72 [in] long nOffset,
73 [in] long nScanSize );
74
75
86 void setPixelsByLongs( [in] long nX,
87 [in] long nY,
88 [in] long nWidth,
89 [in] long nHeight,
90 [in] sequence<long> aProducerData,
91 [in] long nOffset,
92 [in] long nScanSize );
93
94
106 void complete( [in] long Status,
107 [in] XImageProducer xProducer );
108
109};
110
111
112}; }; }; };
113
114#endif
115
116/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
specifies a data sink for an image.
Definition: XImageConsumer.idl:38
void setPixelsByBytes([in] long nX, [in] long nY, [in] long nWidth, [in] long nHeight, [in] sequence< byte > aProducerData, [in] long nOffset, [in] long nScanSize)
delivers a chunk of pixels as long values.
void setPixelsByLongs([in] long nX, [in] long nY, [in] long nWidth, [in] long nHeight, [in] sequence< long > aProducerData, [in] long nOffset, [in] long nScanSize)
delivers a chunk of pixels as byte values.
void init([in] long Width, [in] long Height)
initializes the consumer with image dimensions.
void setColorModel([in] short BitCount, [in] sequence< long > RGBAPal, [in] long RedMask, [in] long GreenMask, [in] long BlueMask, [in] long AlphaMask)
changes color model for next pixels typically called once after initialization.
void complete([in] long Status, [in] XImageProducer xProducer)
is called for the notification of the degree to which the image is delivered.
specifies a source for an image.
Definition: XImageProducer.idl:34
base interface of all UNO interfaces
Definition: XInterface.idl:48
Definition: Accessible.idl:22