1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_rendering_XHalfFloatBitmap_idl__ 24#define __com_sun_star_rendering_XHalfFloatBitmap_idl__ 25 26#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 27#include <com/sun/star/lang/IllegalArgumentException.idl> 28#endif 29#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ 30#include <com/sun/star/lang/IndexOutOfBoundsException.idl> 31#endif 32#ifndef __com_sun_star_rendering_FloatingPointBitmapLayout_idl__ 33#include <com/sun/star/rendering/FloatingPointBitmapLayout.idl> 34#endif 35#ifndef __com_sun_star_geometry_IntegerPoint2D_idl__ 36#include <com/sun/star/geometry/IntegerPoint2D.idl> 37#endif 38#ifndef __com_sun_star_geometry_IntegerRectangle2D_idl__ 39#include <com/sun/star/geometry/IntegerRectangle2D.idl> 40#endif 41#ifndef __com_sun_star_rendering_XHalfFloatReadOnlyBitmap_idl__ 42#include <com/sun/star/rendering/XHalfFloatReadOnlyBitmap.idl> 43#endif 44#ifndef __com_sun_star_rendering_VolatileContentDestroyedException_idl__ 45#include <com/sun/star/rendering/VolatileContentDestroyedException.idl> 46#endif 47 48module com { module sun { module star { module rendering { 49 50/** Specialized interface for bitmaps containing half floats as their 51 color components.<p> 52 53 Half floats are 16 bit wide, and newer GPUs already have them as 54 supported frame buffer format. 55 */ 56interface XHalfFloatBitmap : XHalfFloatReadOnlyBitmap 57{ 58 //------------------------------------------------------------------------- 59 60 /** Set raw data of a bitmap.<p> 61 62 Set raw data of a bitmap, in the format as defined by 63 getMemoryLayout(). With the given rectangle, a subset of the 64 bitmap can be changed. When setting subsets of the bitmap, the 65 same scanline padding takes place as when the whole bitmap is 66 changed.<p> 67 68 */ 69 void setData( [in] sequence<short> data, [in] FloatingPointBitmapLayout bitmapLayout, [in] ::com::sun::star::geometry::IntegerRectangle2D rect ) 70 raises (com::sun::star::lang::IllegalArgumentException, 71 com::sun::star::lang::IndexOutOfBoundsException); 72 73 //------------------------------------------------------------------------- 74 75 /** Set a single pixel of the bitmap with the given color 76 value.<p> 77 78 When setting data on volatile bitmaps, always call isValid() 79 before, and retrieve a new memory layout via 80 getMemoryLayout(). At least under Windows, the memory layout 81 can change for the same bitmap, if the user e.g. switches the 82 screen resolution. Thus, this method will throw an 83 IllegalArgumentException, if the memory layout changed between 84 a call to getMemoryLayout() and setData().<p> 85 */ 86 void setPixel( [in] sequence<short> color, [in] FloatingPointBitmapLayout bitmapLayout, [in] ::com::sun::star::geometry::IntegerPoint2D pos ) 87 raises (com::sun::star::lang::IllegalArgumentException, 88 com::sun::star::lang::IndexOutOfBoundsException); 89}; 90 91}; }; }; }; 92 93#endif 94