PictToBmpFlt.hxx (0d63794c) | PictToBmpFlt.hxx (45fd3b9a) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23#define INCLUDED_PICTTOBMPFLT_HXX 24 25#include <com/sun/star/uno/Sequence.hxx> 26 27#include <premac.h> 28#include <Cocoa/Cocoa.h> 29#include <postmac.h> 30 | 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 --- 14 unchanged lines hidden (view full) --- 23#define INCLUDED_PICTTOBMPFLT_HXX 24 25#include <com/sun/star/uno/Sequence.hxx> 26 27#include <premac.h> 28#include <Cocoa/Cocoa.h> 29#include <postmac.h> 30 |
31/* Transform PICT into the a Window BMP. | 31/** Transform an image from PICT to PNG format |
32 33 Returns true if the conversion was successful false 34 otherwise. 35 */ | 32 33 Returns true if the conversion was successful false 34 otherwise. 35 */ |
36bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict, 37 com::sun::star::uno::Sequence<sal_Int8>& aBmp); | 36bool PICTtoPNG(com::sun::star::uno::Sequence<sal_Int8>& rPictData, 37 com::sun::star::uno::Sequence<sal_Int8>& rPngData); |
38 | 38 |
39/* Transform a Windows BMP to a PICT. | 39/** Transform an image from PNG to a PICT format |
40 41 Returns true if the conversion was successful false 42 otherwise. 43 */ | 40 41 Returns true if the conversion was successful false 42 otherwise. 43 */ |
44bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp, 45 com::sun::star::uno::Sequence<sal_Int8>& aPict); | 44bool PNGtoPICT(com::sun::star::uno::Sequence<sal_Int8>& rPngData, 45 com::sun::star::uno::Sequence<sal_Int8>& rPictData); |
46 47#define PICTImageFileType ((NSBitmapImageFileType)~0) 48 | 46 47#define PICTImageFileType ((NSBitmapImageFileType)~0) 48 |
49bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict, 50 com::sun::star::uno::Sequence<sal_Int8>& aBmp, | 49bool ImageToPNG( com::sun::star::uno::Sequence<sal_Int8>& rImgData, 50 com::sun::star::uno::Sequence<sal_Int8>& rPngData, |
51 NSBitmapImageFileType eInFormat); 52 | 51 NSBitmapImageFileType eInFormat); 52 |
53bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp, 54 com::sun::star::uno::Sequence<sal_Int8>& aPict, 55 NSBitmapImageFileType eOutFormat 56 ); | 53bool PNGToImage( com::sun::star::uno::Sequence<sal_Int8>& rPngData, 54 com::sun::star::uno::Sequence<sal_Int8>& rImgData, 55 NSBitmapImageFileType eOutFormat); |
57 58#endif | 56 57#endif |
58 |
|