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
d516cb2b
Commit
d516cb2b
authored
Aug 26, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/core
into develop
parents
6e736c48
84a2fb09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
DesktopEditor/raster/BgraFrame.cpp
DesktopEditor/raster/BgraFrame.cpp
+1
-0
DesktopEditor/raster/BgraFrame.h
DesktopEditor/raster/BgraFrame.h
+8
-0
No files found.
DesktopEditor/raster/BgraFrame.cpp
View file @
d516cb2b
...
...
@@ -61,6 +61,7 @@ bool CBgraFrame::OpenFile(const std::wstring& strFileName, unsigned int nFileTyp
return
false
;
CxImageToMediaFrame
(
img
);
m_bIsGrayScale
=
img
.
IsGrayScale
();
return
true
;
}
}
...
...
DesktopEditor/raster/BgraFrame.h
View file @
d516cb2b
...
...
@@ -45,6 +45,8 @@ private:
BYTE
*
m_pData
;
bool
m_bIsGrayScale
;
public:
CBgraFrame
()
{
...
...
@@ -69,6 +71,7 @@ private:
m_lHeight
=
0
;
m_lStride
=
0
;
m_pData
=
NULL
;
m_bIsGrayScale
=
false
;
}
public:
...
...
@@ -109,6 +112,11 @@ public:
m_pData
=
pData
;
}
inline
bool
IsGrayScale
()
{
return
m_bIsGrayScale
;
}
public:
bool
OpenFile
(
const
std
::
wstring
&
strFileName
,
unsigned
int
nFileType
=
0
);
//0 - detect
bool
SaveFile
(
const
std
::
wstring
&
strFileName
,
unsigned
int
nFileType
);
...
...
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