CFx SDK Documentation  2020SP3
FxPreviewBitmap.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 "DDKERNEL.h"
20 #include <Gi/GiRasterImage.h>
21 #include <ThumbnailImage.h>
22 
23 #include "FxPragmaPush.h"
24 
25 class CFxString;
26 
27 class QImage;
28 class QIODevice;
29 
30 struct IStream;
31 
38 {
39 public:
40  /* {secret} */
41  virtual ~CFxPreviewBitmap();
42 
46 
49  virtual bool Read( const CFxString & lpFileName ) = 0;
50 
53  virtual bool HasPreview() = 0;
54 
57  virtual void Clear() = 0;
58 
61  virtual void DrawToQImage( QImage * image ) = 0;
62 
63 #if defined(_MSC_VER)
64 
66  virtual bool Read( IStream *pStream ) = 0;
67 
70  virtual void DrawToHDC( HDC dc, int x, int y, int width, int height ) = 0;
71 
74  virtual void GetBitmapAndPalette( HBITMAP *image, HPALETTE *hPalette ) = 0;
75 
78  static void DrawNoPreview( HDC hDC, const RECT* lprc, COLORREF* pBgColor );
79 
80 #endif
81 };
82 
83 #include "FxPragmaPop.h"
84 
FxPragmaPop.h
GiRasterImage.h
DDKERNEL.h
x
GLfloat x
Definition: gles2_ext.h:314
CFxPreviewBitmap::HasPreview
virtual bool HasPreview()=0
CFxPreviewBitmap::Create
static CFxPreviewBitmap * Create()
CFxString
Definition: FxString.h:48
y
GLfloat GLfloat y
Definition: gles2_ext.h:316
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OD::File::Read
@ Read
Definition: RxFS.h:61
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxPreviewBitmap::~CFxPreviewBitmap
virtual ~CFxPreviewBitmap()
CFxPreviewBitmap::DrawToQImage
virtual void DrawToQImage(QImage *image)=0
CFxPreviewBitmap
Definition: FxPreviewBitmap.h:38
CFxPreviewBitmap::Read
virtual bool Read(const CFxString &lpFileName)=0
ThumbnailImage.h
CFxPreviewBitmap::Clear
virtual void Clear()=0
FxPragmaPush.h