Bitmap and Image updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -306,6 +306,7 @@ public:
|
|||||||
);
|
);
|
||||||
virtual bool LoadFile( wxBitmap* pBitmap
|
virtual bool LoadFile( wxBitmap* pBitmap
|
||||||
,const wxString& rName
|
,const wxString& rName
|
||||||
|
,HPS hPs
|
||||||
,long lFlags
|
,long lFlags
|
||||||
,int nDesiredWidth
|
,int nDesiredWidth
|
||||||
,int nDesiredHeight
|
,int nDesiredHeight
|
||||||
@@ -325,6 +326,7 @@ public:
|
|||||||
);
|
);
|
||||||
virtual bool Load( wxGDIImage* pImage
|
virtual bool Load( wxGDIImage* pImage
|
||||||
,const wxString& rName
|
,const wxString& rName
|
||||||
|
,HPS hPs
|
||||||
,long lFlags
|
,long lFlags
|
||||||
,int nDesiredWidth
|
,int nDesiredWidth
|
||||||
,int nDesiredHeight
|
,int nDesiredHeight
|
||||||
|
@@ -340,6 +340,8 @@ bool wxBitmap::LoadFile(
|
|||||||
, long lType
|
, long lType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
HPS hPs;
|
||||||
|
|
||||||
UnRef();
|
UnRef();
|
||||||
|
|
||||||
wxBitmapHandler* pHandler = wxDynamicCast( FindHandler(lType)
|
wxBitmapHandler* pHandler = wxDynamicCast( FindHandler(lType)
|
||||||
@@ -352,6 +354,7 @@ bool wxBitmap::LoadFile(
|
|||||||
|
|
||||||
return(pHandler->LoadFile( this
|
return(pHandler->LoadFile( this
|
||||||
,rFilename
|
,rFilename
|
||||||
|
,hPs
|
||||||
,lType
|
,lType
|
||||||
, -1
|
, -1
|
||||||
, -1
|
, -1
|
||||||
@@ -739,6 +742,7 @@ bool wxBitmapHandler::Create(
|
|||||||
bool wxBitmapHandler::Load(
|
bool wxBitmapHandler::Load(
|
||||||
wxGDIImage* pImage
|
wxGDIImage* pImage
|
||||||
, const wxString& rName
|
, const wxString& rName
|
||||||
|
, HPS hPs
|
||||||
, long lFlags
|
, long lFlags
|
||||||
, int nWidth
|
, int nWidth
|
||||||
, int nHeight
|
, int nHeight
|
||||||
@@ -750,6 +754,7 @@ bool wxBitmapHandler::Load(
|
|||||||
|
|
||||||
return(pBitmap ? LoadFile( pBitmap
|
return(pBitmap ? LoadFile( pBitmap
|
||||||
,rName
|
,rName
|
||||||
|
,hPs
|
||||||
,lFlags
|
,lFlags
|
||||||
,nWidth
|
,nWidth
|
||||||
,nHeight
|
,nHeight
|
||||||
@@ -787,6 +792,7 @@ bool wxBitmapHandler::Create(
|
|||||||
bool wxBitmapHandler::LoadFile(
|
bool wxBitmapHandler::LoadFile(
|
||||||
wxBitmap* WXUNUSED(pBitmap)
|
wxBitmap* WXUNUSED(pBitmap)
|
||||||
, const wxString& WXUNUSED(rName)
|
, const wxString& WXUNUSED(rName)
|
||||||
|
, HPS WXUNUSED(hPs)
|
||||||
, long WXUNUSED(lType)
|
, long WXUNUSED(lType)
|
||||||
, int WXUNUSED(nDesiredWidth)
|
, int WXUNUSED(nDesiredWidth)
|
||||||
, int WXUNUSED(nDesiredHeight)
|
, int WXUNUSED(nDesiredHeight)
|
||||||
|
@@ -87,6 +87,7 @@ bool wxIcon::LoadFile(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
wxGDIImageHandler* pHandler = FindHandler(lType);
|
wxGDIImageHandler* pHandler = FindHandler(lType);
|
||||||
|
HPS hPs = NULLHANDLE;
|
||||||
|
|
||||||
UnRef();
|
UnRef();
|
||||||
m_refData = new wxIconRefData;
|
m_refData = new wxIconRefData;
|
||||||
@@ -94,6 +95,7 @@ bool wxIcon::LoadFile(
|
|||||||
if (pHandler)
|
if (pHandler)
|
||||||
return(pHandler->Load( this
|
return(pHandler->Load( this
|
||||||
,rFilename
|
,rFilename
|
||||||
|
,hPs
|
||||||
,lType
|
,lType
|
||||||
,nDesiredWidth
|
,nDesiredWidth
|
||||||
,nDesiredHeight
|
,nDesiredHeight
|
||||||
|
Reference in New Issue
Block a user