CFx SDK Documentation  2020SP3
FxRasterImage.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxPragmaPush.h"
20 
21 #include "DDKERNEL.h"
22 
23 #include <OdaCommon.h>
24 #include <UInt8Array.h>
25 #include <Gi/GiRasterImage.h>
26 #include <Gi/GiViewportGeometry.h>
27 #include <Ge/GeExtents3d.h>
28 
29 #include <QtCore/QRect>
30 #include <QtGui/QImage>
31 
32 class CFxRasterImage;
34 
35 class CFxString;
36 
44 {
45 public:
47 
49  virtual ~CFxRasterImage();
50 
51 public:
53  virtual bool Create( int iWitdh, int iHeight, int iBPP, const ODCOLORREF* pPalette ) = 0;
54 
58  virtual bool CreateFromBuffer( OdUInt8Array& buffer, int width, int height, int bpp ) = 0;
60 
73  virtual bool Create( int width, int height, const OdGiSelfGdiDrawable* pDrawable, const QRect& rect, const OdGiCommonDraw& commonDraw, void* phdc ) = 0;
74 
84  virtual bool CreateFromSlide( int width, int height, const CFxString& name ) = 0;
85 
86  virtual bool CreateFromQImage( const QImage& qImage, OdUInt32 scanLinesAlignment ) = 0;
87 
89  virtual bool CreateFromStream( const uchar* pBuffer, int size ) = 0;
90 
92  virtual bool CreateFromFile( const QString& fileName ) = 0;
93 
95  virtual bool WriteFile( const QString& fileName ) = 0;
96 
98  virtual const QImage& GetImage() const = 0;
99 
101  virtual QImage& GetImage() = 0;
102 
104  virtual void Clear() = 0;
105 
107  virtual void ShrinkMemory() = 0;
108 
109 };
110 
111 #include "FxPragmaPop.h"
FxPragmaPop.h
GiRasterImage.h
CFxRasterImage::GetImage
virtual QImage & GetImage()=0
CFxRasterImage::CreateFromStream
virtual bool CreateFromStream(const uchar *pBuffer, int size)=0
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
buffer
GLuint buffer
Definition: gles2_ext.h:178
GeExtents3d.h
CFxRasterImage::CreateFromQImage
virtual bool CreateFromQImage(const QImage &qImage, OdUInt32 scanLinesAlignment)=0
CFxRasterImage::GetImage
virtual const QImage & GetImage() const =0
DDKERNEL.h
OdArray< OdUInt8, OdMemoryAllocator< OdUInt8 > >
CFxRasterImagePtr
OdSmartPtr< CFxRasterImage > CFxRasterImagePtr
Definition: FxRasterImage.h:32
CFxRasterImage::ShrinkMemory
virtual void ShrinkMemory()=0
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
CFxRasterImage::Clear
virtual void Clear()=0
OdGiCommonDraw
Definition: GiCommonDraw.h:572
size
GLsizeiptr size
Definition: gles2_ext.h:182
CFxRasterImage
Definition: FxRasterImage.h:44
GiViewportGeometry.h
OdSmartPtr
Definition: SmartPtr.h:58
CFxString
Definition: FxString.h:48
CFxRasterImage::Create
virtual bool Create(int width, int height, const OdGiSelfGdiDrawable *pDrawable, const QRect &rect, const OdGiCommonDraw &commonDraw, void *phdc)=0
CFxRasterImage::CreateFromBuffer
virtual bool CreateFromBuffer(OdUInt8Array &buffer, int width, int height, QImage::Format format)=0
CFxRasterImage::~CFxRasterImage
virtual ~CFxRasterImage()
OdGiRasterImageParam
Definition: GiRasterImage.h:474
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OdaCommon.h
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
OdPdfPublish::Page::Format
Format
Definition: PdfPublishCommon.h:95
OdGiSelfGdiDrawable
Definition: GiViewportGeometry.h:45
CFxRasterImage::CreateFromSlide
virtual bool CreateFromSlide(int width, int height, const CFxString &name)=0
UInt8Array.h
format
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
FxPragmaPush.h
CFxRasterImage::CreateFromBuffer
virtual bool CreateFromBuffer(OdUInt8Array &buffer, int width, int height, int bpp)=0
CFxRasterImage::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxRasterImage)
CFxRasterImage::WriteFile
virtual bool WriteFile(const QString &fileName)=0
CFxRasterImage::CreateFromFile
virtual bool CreateFromFile(const QString &fileName)=0
uchar
unsigned char uchar
Definition: FxQtCore.h:72
CFxRasterImage::Create
virtual bool Create(int iWitdh, int iHeight, int iBPP, const ODCOLORREF *pPalette)=0