CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxRasterImage.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 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>
27#include <Ge/GeExtents3d.h>
28
29#include <QtCore/QRect>
30#include <QtGui/QImage>
31
32class CFxRasterImage;
34
35class CFxString;
36
44{
45public:
47
49 virtual ~CFxRasterImage();
50
51public:
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;
59 virtual bool CreateFromBuffer( OdUInt8Array& buffer, int width, int height, QImage::Format format ) = 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"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
unsigned char uchar
Definition: FxQtCore.h:72
OdSmartPtr< CFxRasterImage > CFxRasterImagePtr
Definition: FxRasterImage.h:33
#define ODCOLORREF
Definition: OdPlatform.h:933
unsigned int OdUInt32
ODRX_DECLARE_MEMBERS(CFxRasterImage)
virtual void ShrinkMemory()=0
virtual void Clear()=0
virtual const QImage & GetImage() const =0
virtual bool WriteFile(const QString &fileName)=0
virtual ~CFxRasterImage()
virtual bool CreateFromQImage(const QImage &qImage, OdUInt32 scanLinesAlignment)=0
virtual bool CreateFromFile(const QString &fileName)=0
virtual bool CreateFromStream(const uchar *pBuffer, int size)=0
virtual bool CreateFromSlide(int width, int height, const CFxString &name)=0
virtual bool CreateFromBuffer(OdUInt8Array &buffer, int width, int height, int bpp)=0
virtual bool Create(int iWitdh, int iHeight, int iBPP, const ODCOLORREF *pPalette)=0
virtual bool CreateFromBuffer(OdUInt8Array &buffer, int width, int height, QImage::Format format)=0
virtual bool Create(int width, int height, const OdGiSelfGdiDrawable *pDrawable, const QRect &rect, const OdGiCommonDraw &commonDraw, void *phdc)=0
virtual QImage & GetImage()=0
GLuint buffer
Definition: gles2_ext.h:178
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLsizeiptr size
Definition: gles2_ext.h:182
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110