Commit Graph

125 Commits

Author SHA1 Message Date
Vadim Zeitlin
37ba70a520 added support for reading resolution information from TIFF, JPEG and BMP formats; corrected some bugs with saving resolution; added command allowing to see the image resolution (if available) to the sample (heavily modified patch 1790546)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 18:32:36 +00:00
Václav Slavík
650c0aa918 cleanup of raw access to bitmaps:
1. remove UseAlpha() on platforms that don't need it and call it automatically from ~wxPixelData instead of requiring explicit call; deprecate wxPixelData::UseAlpha()
2. don't call UngetRawData() if GetRawData() failed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 13:32:25 +00:00
Vadim Zeitlin
05a8831af2 added Roscale() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 13:05:41 +00:00
Vadim Zeitlin
1d8acb7d4d added Rotate() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 12:50:04 +00:00
Vadim Zeitlin
45e6e6f8ab call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Vadim Zeitlin
c66972ccc2 ask for BPP for .bmp extension, not .bpp one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-06 17:13:11 +00:00
Paul Cornett
adf45b5d48 remove unnecessary casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 20:39:26 +00:00
Vadim Zeitlin
3af706cc31 added TGA handler (somewhat modified patch 1393912)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 18:58:25 +00:00
Włodzimierz Skiba
59185e297d Added test for scaling and bluring wxImage.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-16 13:22:13 +00:00
Robin Dunn
59b7a28003 pass useMask=true for the toucan images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-23 02:35:06 +00:00
Robin Dunn
8ef089485c Show use use of both wxNativePixelData and wxAlphaPixelData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-23 01:17:02 +00:00
Włodzimierz Skiba
9061c15cee Show grey version of image with alpha channel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 16:59:33 +00:00
Włodzimierz Skiba
19bc15143a wxBLACK usage.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 13:26:00 +00:00
Vadim Zeitlin
ff3e84ffdc File/dir dialog styles and other changes (patch 1488371):
- check invalid combinations of styles in wxFileDialogBase::Create()
- use wxFD_XXX naming convention for wxFileDialog styles
- replaces wxDD_NEW_DIR_BUTTON with wxDD_DIR_MUST_EXIST
- removes #ifdef __WXGTK24__ / #endif blocks from wxGTK code
- removes wxFileDialogBase::Get/SetStyle and wxFileDialogBase::m_fileName
- renames wxDirDialogGTK to wxDirDialog


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 23:32:12 +00:00
Vadim Zeitlin
234fedd2d3 added support for CMYK JPEGs loading (patch 1476078)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 20:08:39 +00:00
Vadim Zeitlin
bd981f27c9 use wxBitmap objects instead of pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 20:00:56 +00:00
Vadim Zeitlin
66df4ec643 show effects of mirroring toucan image with alpha (modified part of patch 1469817)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:41:59 +00:00
Robert Roebling
6e5551ad85 Fix rawbitmap sample to clear bitmap first.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-29 15:44:21 +00:00
Włodzimierz Skiba
71307412f5 Missing wxUSE_... flags and source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-24 17:47:11 +00:00
Vadim Zeitlin
978d3d3647 added wxImage::RotateHue() and RGB <-> HSV conversions (patch 1227108)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 22:50:34 +00:00
Włodzimierz Skiba
d0ee33f5c6 '[1219035] cleanup: miscellaneous' and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-13 12:19:33 +00:00
Julian Smart
91b073576e Use standard ids
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 12:04:48 +00:00
Julian Smart
3e8711cef5 Applied patch [ 1183803 ] PNM: support for ascii grey + raw grey
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 15:37:40 +00:00
Michael Wetherell
5c99abbe83 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-16 20:40:43 +00:00
Vadim Zeitlin
b068dfe292 use premultiplied RGB in raw image demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-15 00:14:32 +00:00
Włodzimierz Skiba
24207dfcc3 DMC error fix: dynamic initialization of static data.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-30 15:50:06 +00:00
Vadim Zeitlin
4a10132773 restored alpha test in raw image frame (why had it been commented out?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-01 17:52:50 +00:00
Vadim Zeitlin
5a566d89be added tests for savin PNG images in different formats; don't ask for BMP bpp if not saving as BMP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-27 15:25:55 +00:00
Robert Roebling
284f2b59db Added raw bitmap access support to GTK 2.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-13 15:35:43 +00:00
Włodzimierz Skiba
9386cb75e3 Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 14:08:31 +00:00
Włodzimierz Skiba
925e9792d3 Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:54:57 +00:00
Włodzimierz Skiba
8520f1374c Fixes for wxUSE_STATUSBAR.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-19 15:36:01 +00:00
Włodzimierz Skiba
47f797bd30 Correct parent in wxFileSelector, -1->wxID_ANY, TRUE->true replacements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-01 15:42:12 +00:00
Julian Smart
3ef37e7f4e Always use XPMs in this sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:28:05 +00:00
Robert Roebling
f9ebac93e7 Further corrections to bitmap and blit code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-18 19:23:19 +00:00
Robert Roebling
9fe7d43031 image sample fix from 2_4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-09 20:00:22 +00:00
Mattia Barbon
481721e8cb Applied OpenWatcom fixes from ABX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 20:39:58 +00:00
Vadim Zeitlin
095980e182 no changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-14 13:00:31 +00:00
Václav Slavík
9b24b388c1 compilation fix for platforms w/o wxRawBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 23:25:09 +00:00
Jouk Jansen
c698eae5a8 Committing in .
OpenVMS compile issues

 Modified Files:
 	wxWindows/include/wx/vms_x_fix.h
 	wxWindows/samples/image/image.cpp
 	wxWindows/src/generic/descrip.mms
 	wxWindows/src/motif/clipbrd.cpp
 	wxWindows/src/motif/combobox.cpp
 	wxWindows/src/motif/scrolbar.cpp
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 11:28:16 +00:00
Vadim Zeitlin
05a0787179 Mac compilation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 18:47:53 +00:00
Mattia Barbon
dd38c87578 Implemented wxBitmapDataObject.
Implemented generic wxDataObject support in wxClipboard.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 17:24:11 +00:00
Chris Elliott
1e3c12d774 implement wxHAVE_RAW_BITMAP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-02 12:58:00 +00:00
Vadim Zeitlin
a452af5e68 allow raw access to a part of the image only (faster when using alpha)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-01 16:37:51 +00:00
Vadim Zeitlin
1d2f48b681 updated to use the new raw bitmap API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-28 02:04:09 +00:00
Vadim Zeitlin
30ad0a1469 don't crash if an image is not found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-14 00:46:59 +00:00
Vadim Zeitlin
12338247ae better alpha test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-13 14:11:01 +00:00
Vadim Zeitlin
10b41b53cb added wxBitmap::UseAlpha()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-13 13:45:20 +00:00
Mattia Barbon
be05eab690 wxMotif does not have wxBitmapDataObject.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-02 20:57:48 +00:00
Vadim Zeitlin
40c79fab3a use wxCLOSE_BOX for MyImageFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-23 18:02:05 +00:00