Patch level :10.0 CD
Files correlati : Ricompilazione Demo : [ ] Commento :ruotata l'immagine iniziale git-svn-id: svn://10.65.10.50/trunk@18020 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2a308e1a05
commit
0f45d2c98d
@ -1904,10 +1904,19 @@ CampoWizard::CampoWizard(wxWindow* pParent)
|
||||
iLogo.LoadFile(strLogo, wxBITMAP_TYPE_ANY);
|
||||
int nWidth = iLogo.GetWidth();
|
||||
int nHeight = iLogo.GetHeight();
|
||||
if (nWidth > 320)
|
||||
//se l'immagine è orizzontale frega troppo spazio allora la ruotiamo di soppiatto
|
||||
if (nWidth > nHeight)
|
||||
{
|
||||
nHeight = nHeight * 320 / nWidth;
|
||||
nWidth = 320;
|
||||
iLogo = iLogo.Rotate90(false);
|
||||
nWidth = iLogo.GetWidth();
|
||||
nHeight = iLogo.GetHeight();
|
||||
}
|
||||
|
||||
const int nMax = 216;
|
||||
if (nWidth > nMax)
|
||||
{
|
||||
nHeight = nHeight * nMax / nWidth;
|
||||
nWidth = nMax;
|
||||
iLogo.Rescale(nWidth, nHeight, wxIMAGE_QUALITY_HIGH);
|
||||
}
|
||||
const wxBitmap bitmap(iLogo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user