Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
fefb9d3f
Commit
fefb9d3f
authored
May 18, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - переопределение BITMAPINFOHEADER
parent
841dfe40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
+17
-2
No files found.
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
View file @
fefb9d3f
...
...
@@ -8,6 +8,21 @@
namespace
ImageHelper
{
typedef
struct
___tagBITMAPINFOHEADER
{
DWORD
biSize
;
LONG
biWidth
;
LONG
biHeight
;
WORD
biPlanes
;
WORD
biBitCount
;
DWORD
biCompression
;
DWORD
biSizeImage
;
LONG
biXPelsPerMeter
;
LONG
biYPelsPerMeter
;
DWORD
biClrUsed
;
DWORD
biClrImportant
;
}
___BITMAPINFOHEADER
;
inline
static
int
CompareStrings
(
const
wchar_t
*
str1
,
const
wchar_t
*
str2
)
{
CString
cstr1
;
cstr1
=
str1
;
...
...
@@ -21,11 +36,11 @@ namespace ImageHelper
inline
bool
SaveImageToFileFromDIB
(
unsigned
char
*
buffer
,
int
size
,
const
std
::
wstring
&
file
)
{
bool
result
=
false
;
const
BITMAPINFOHEADER
*
info
=
(
BITMAPINFOHEADER
*
)
buffer
;
const
___BITMAPINFOHEADER
*
info
=
(
___
BITMAPINFOHEADER
*
)
buffer
;
if
(
NULL
!=
info
&&
info
->
biSize
==
40
)
{
unsigned
char
*
pBgraData
=
buffer
+
sizeof
(
BITMAPINFOHEADER
);
unsigned
char
*
pBgraData
=
buffer
+
sizeof
(
___
BITMAPINFOHEADER
);
int
nWidth
=
info
->
biWidth
;
int
nHeight
=
info
->
biHeight
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment