CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxRasterImage.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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
42
44{
45public:
47
49 virtual ~CFxRasterImage();
50
51public:
55 virtual bool Create( int iWitdh, int iHeight, int iBPP, const ODCOLORREF* pPalette ) = 0;
56
60 virtual bool CreateFromBuffer( OdUInt8Array& buffer, int width, int height, int bpp ) = 0;
61 virtual bool CreateFromBuffer( OdUInt8Array& buffer, int width, int height, QImage::Format format ) = 0;
62
74 virtual bool Create( int width, int height, const OdGiSelfGdiDrawable* pDrawable, const QRect& rect, const OdGiCommonDraw& commonDraw, void* phdc ) = 0;
75
84 virtual bool CreateFromSlide( int width, int height, const CFxString& name ) = 0;
85
86 virtual bool CreateFromQImage( const QImage& qImage, OdUInt32 scanLinesAlignment ) = 0;
87
91 virtual bool CreateFromStream( const uchar* pBuffer, int size ) = 0;
92
96 virtual bool CreateFromFile( const QString& fileName ) = 0;
97
101 virtual bool WriteFile( const QString& fileName ) = 0;
102
106 virtual const QImage& GetImage() const = 0;
107
111 virtual QImage& GetImage() = 0;
112
116 virtual void Clear() = 0;
117
121 virtual void ShrinkMemory() = 0;
122
123};
124
125#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition DDKERNEL.h:32
OdSmartPtr< CFxRasterImage > CFxRasterImagePtr
unsigned char uchar
#define ODCOLORREF
unsigned int OdUInt32
OdArray< OdUInt8, OdMemoryAllocator< OdUInt8 > > OdUInt8Array
Definition UInt8Array.h:35
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
virtual OdUInt32 scanLinesAlignment() const =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