Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
75225278
Commit
75225278
authored
Jul 20, 2015
by
Suleyman TURKMEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update window_w32.cpp
parent
0726c4d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
window_w32.cpp
modules/highgui/src/window_w32.cpp
+19
-2
No files found.
modules/highgui/src/window_w32.cpp
View file @
75225278
...
...
@@ -1874,21 +1874,38 @@ static void showSaveDialog(CvWindow* window)
ofn
.
lStructSize
=
sizeof
(
ofn
);
#endif
ofn
.
hwndOwner
=
window
->
hwnd
;
ofn
.
lpstrFilter
=
"Portable Network Graphics files (*.png)
\0
*.png
\0
"
"JPEG files (*.jpeg;*.jpg;*.jpe)
\0
*.jpeg;*.jpg;*.jpe
\0
"
ofn
.
lpstrFilter
=
#ifdef HAVE_PNG
"Portable Network Graphics files (*.png)
\0
*.png
\0
"
#endif
"Windows bitmap (*.bmp;*.dib)
\0
*.bmp;*.dib
\0
"
#ifdef HAVE_JPEG
"JPEG files (*.jpeg;*.jpg;*.jpe)
\0
*.jpeg;*.jpg;*.jpe
\0
"
#endif
#ifdef HAVE_TIFF
"TIFF Files (*.tiff;*.tif)
\0
*.tiff;*.tif
\0
"
#endif
#ifdef HAVE_JASPER
"JPEG-2000 files (*.jp2)
\0
*.jp2
\0
"
#endif
#ifdef HAVE_WEBP
"WebP files (*.webp)
\0
*.webp
\0
"
#endif
"Portable image format (*.pbm;*.pgm;*.ppm;*.pxm;*.pnm)
\0
*.pbm;*.pgm;*.ppm;*.pxm;*.pnm
\0
"
#ifdef HAVE_OPENEXR
"OpenEXR Image files (*.exr)
\0
*.exr
\0
"
#endif
"Radiance HDR (*.hdr;*.pic)
\0
*.hdr;*.pic
\0
"
"Sun raster files (*.sr;*.ras)
\0
*.sr;*.ras
\0
"
"All Files (*.*)
\0
*.*
\0
"
;
ofn
.
lpstrFile
=
szFileName
;
ofn
.
nMaxFile
=
MAX_PATH
;
ofn
.
Flags
=
OFN_EXPLORER
|
OFN_PATHMUSTEXIST
|
OFN_OVERWRITEPROMPT
|
OFN_NOREADONLYRETURN
|
OFN_NOCHANGEDIR
;
#ifdef HAVE_PNG
ofn
.
lpstrDefExt
=
"png"
;
#else
ofn
.
lpstrDefExt
=
"bmp"
;
#endif
if
(
GetSaveFileName
(
&
ofn
))
{
...
...
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