CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxPreviewBitmap.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 "DDKERNEL.h"
20#include <Gi/GiRasterImage.h>
21#include <ThumbnailImage.h>
22
23#include "FxPragmaPush.h"
24
25class CFxString;
26
27class QImage;
28class QIODevice;
29
30struct IStream;
31
38{
39public:
40 /* {secret} */
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)
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
#define DDKERNEL_API
Definition: DDKERNEL.h:32
virtual bool HasPreview()=0
virtual bool Read(const CFxString &lpFileName)=0
static CFxPreviewBitmap * Create()
virtual void Clear()=0
virtual ~CFxPreviewBitmap()
virtual void DrawToQImage(QImage *image)=0
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLfloat x
Definition: gles2_ext.h:314
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
GLfloat GLfloat y
Definition: gles2_ext.h:316