Paul Cornett
a0f81e9f15
use AllocExclusive in wxImage
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-17 19:09:28 +00:00
Włodzimierz Skiba
18680f8651
Include wx/math.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-15 17:58:49 +00:00
Włodzimierz Skiba
0bca037363
Include wx/bitmap.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-14 10:02:19 +00:00
Włodzimierz Skiba
9a6384ca1e
Improvements for building minimal builds and new ports: wxUSE_* usage and minor cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-08 11:25:30 +00:00
Włodzimierz Skiba
7ce30d0b41
[ 1502016 ] wxImage::ConvertToGreyscale should retain alpha channel.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 17:02:08 +00:00
Włodzimierz Skiba
e7c80f9e05
wx/debug.h is always unconditionally included by wx/defs.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 15:13:23 +00:00
Włodzimierz Skiba
de6185e212
Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-02 10:39:23 +00:00
Robert Roebling
781945ea41
Patch 1476076 about negative wxImage size when
...
copying (or something).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-30 11:44:14 +00:00
Włodzimierz Skiba
32d4c30a13
Include wx/hash.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-21 10:33:01 +00:00
Włodzimierz Skiba
8898456df4
wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 07:24:35 +00:00
Vadim Zeitlin
051924b886
Handle alpha channel in wxImage::Mirror() and GetSubImage() (patch 1469817)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:37:39 +00:00
Vadim Zeitlin
f8855e4725
great copy ctor/assignment operators cleanup by Paul Cornett (patch 1307665)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 00:51:23 +00:00
Robert Roebling
a1cd956478
wxImage::Copy() forgot the alpha channel.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-26 12:07:10 +00:00
Julian Smart
b598ec915c
Only do sanity check if the stream is seekable, otherwise it'll always fail
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-23 18:12:47 +00:00
Julian Smart
ec85956ae9
Applied patch [ 1339764 ] Add wxImage::ConvertToGreyscale
...
Jamie Gadd
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-19 09:55:15 +00:00
Mart Raudsepp
8180d40b1f
Typo fixes in comments
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-13 02:30:18 +00:00
Julian Smart
dd9ea234f2
Do a sanity check before reading. Otherwise, if trying to read a duff image file,
...
the app can abort if you pass a specific image type, but simply show an error
message if you pass wxBITMAP_TYPE_ANY.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-26 14:08:43 +00:00
Włodzimierz Skiba
38d4b1e4bc
Warning fixes for BCC, VC, OW and MinGW.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 13:48:01 +00:00
Vadim Zeitlin
4e115ed2c7
fixed variable shadowing icc warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 00:29:42 +00:00
Vadim Zeitlin
c77a67962c
use wxIsSameDouble() and wxIsNullDouble() for warning-less double comparison of doubles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 23:27:27 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Julian Smart
6926b9c403
assert -> wxASSERT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-30 11:55:41 +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
Julian Smart
921c65ed3d
Fix to preserve alpha channel in Rotate90
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 11:33:00 +00:00
Vadim Zeitlin
21dc4be5d2
added wxImage::IsTransparent(x, y)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 21:30:22 +00:00
Vadim Zeitlin
d2502f1471
use separate is-static flag for alpha channel and main data
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 21:19:54 +00:00
Vadim Zeitlin
5644ac4640
added XYToIndex() to avoid duplicating the checks for valid coordinates in many different places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 21:16:04 +00:00
Robin Dunn
4013de1217
Add static_data flag to SetData and SetAlpha so Python buffer objects
...
can be used in wxPython without double free()'s.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 02:04:52 +00:00
Włodzimierz Skiba
e9b64c5ea8
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 17:39:22 +00:00
Robert Roebling
b737ad10de
Applied John L's patches for curson scaling, image resizing
...
without scaling and the art provider resize bitmap patch.
I'll look into adapting the generic file dialog to it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-04 18:33:57 +00:00
Vadim Zeitlin
2a7367398e
don't try to save invalid image: added a wxCHECK(Ok()) to Save() overloads which didn't already have it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-01 17:42:28 +00:00
Julian Smart
cad61c3e8f
Added XPM ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 11:00:07 +00:00
Vadim Zeitlin
828f093601
added InitAlpha() (replaces patch 991168)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 21:51:37 +00:00
Vadim Zeitlin
07d0abae96
document GetOptionInt() as returning 0 for the options which are not present
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 16:33:38 +00:00
Stefan Csomor
8d3b6b8aa1
alpha support for Scale added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-18 07:14:07 +00:00
Stefan Csomor
cd0bbd03d7
added alpha channel support to ShrinkBy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-14 19:29:09 +00:00
Włodzimierz Skiba
b713f8919c
wx/math.h integration
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 20:52:13 +00:00
Robert Roebling
4ea56379e3
Added support for static (inlined) wxImages with
...
alpha channel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 21:33:38 +00:00
Robert Roebling
6408deedee
Added support for alpha channels in interpolated
...
and non-interpolated image rotation.
Added helper method for turning shades of grey
into shades of alpha and a colour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-18 14:01:45 +00:00
Vadim Zeitlin
30984deafc
new set of fixes for problems due to huge files support: drop wxFileSize_t, use wxFileOffset only, make wxInvalidOffset an int (main part of the patch 1063498)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 21:02:58 +00:00
Włodzimierz Skiba
1b941f2d31
Warning fixes for OpenWatcom.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 05:56:07 +00:00
Vadim Zeitlin
67c20e133e
use wxFileSize_t instead of wxFileOffset or off_t
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:34:21 +00:00
Włodzimierz Skiba
7beb59f36c
Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE/false, !!/!IsEmpty().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 18:13:32 +00:00
Václav Slavík
e95f0d7986
removed warning-hiding cast, previous revision removed the warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 15:42:56 +00:00
Václav Slavík
8f2b21e474
threshold is pixel value, it should use unsigned char
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 11:54:31 +00:00
Włodzimierz Skiba
e567515efd
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-20 11:53:52 +00:00
Dimitri Schoolwerth
94406a493c
MSVC6 return warning fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 15:32:07 +00:00
Václav Slavík
ff5ad79411
added wxImage::ConvertAlphaToMask
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 12:31:08 +00:00
Václav Slavík
bc88f66f5f
minor polishing of user-visible messages
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 11:32:51 +00:00
Vadim Zeitlin
5402d21de1
fixed delete[]/free mismatch in SetAlpha (part of patch 991168)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 23:18:10 +00:00