FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BtnBmp icon resizing with recent FWH including 1501
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 02:09 PM
To All

I know there has been much done with the BtnBmp class .. I have just recently noticed several of my Bitmap icons on smaller dimension buttons have been resized to a tiny resolution.

The Arrow bitmap is 48x48 and the Cancel bitmap is 16x16. The Arrow ( larger resolution ) is the bitmap being resized to appear much smaller than it used to be.

I am sorry .. I just noticed this behavior and can not pin-point when the appearance changed.

Old Buttons


New Buttons


Here is the code
Code (fw): Select all Collapse
REDEFINE BTNBMP oB1 ID 140 of oCust   ;    // Cancel
            RESOURCE "CANCEL";
            PROMPT "    Cancel" LEFT 2007;

REDEFINE BTNBMP oB2 ID 132 of oCust   ;    // Save and Next
            RESOURCE "NEXT" ;
            PROMPT "  Next" LEFT 2007;


Thanks
Rick Lipkin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 02:15 PM

We shall check and get back to you.
What would be the size of button in pixels? You can find out by ACTION MsgInfo( Str( oB1:nWidth ) + Str( oB1:nHeight ) )

The basic change is this. Now even very large images can be displayed in btnbmp. When the bitmap size exceeds the height or width ( in this case it must be height ) the bitmap is re-sized enough to fit within the size of bitmap.

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 02:37 PM

Rao

Thanks for the quick reply .. Both buttons are 96 29

Rick Lipkin

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 05:01 PM

Rick,

can You please check the image-size ( must be the same ) ?
In case the picture-size ( inside the transparent-are ) is different,
it could be the reason for the button-adjustment with different result.

best regards
Uwe :?:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 05:11 PM
Rick Lipkin wrote:Rao

Thanks for the quick reply .. Both buttons are 96 29

Rick Lipkin

That means the bitmap is re-sized in the ration 25/48. which is approx 24x24
As Mr Uwe suggested possibly the actual image area is much less than 48x48.
I shall be glad if you can extract the bitmap from the res file and send to my email.
Let us see how best we can improve the bmp rendering.
Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 05:14 PM
The Image shows what I mean.
Both images are 32x32 in size, but the picture-size is different.
The button displays the original size and not cropped to the picture.
You can check these images with PIXELFORMER.



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 05:42 PM

Rao

The bitmaps are on the way .. The Next.Bmp is 48x48 but there is a lot of dead space around the image. The old BtnBmp class somehow compensated for the out of range height of the dimensions of the button. I chose that particular bitmap based on the old class because the appearance was correct in production.

Thanks for your Support!
Rick Lipkin

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: BtnBmp icon resizing with recent FWH including 1501
Posted: Wed Jan 21, 2015 06:18 PM
Rick,

same butto-nsize and different picture-size



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion