FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Uwe
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
To Uwe
Posted: Thu Jul 05, 2012 08:30 AM
Uwe,
please
this is our logo (Hard Service).
http://www.marcoboschi.it/hs100.bmp


It's ok for document

I have to put it in a btnbmp for a program.

But the effect is no good.




How can I modify bmp files to obtain a gray background?

Many thanks
marco
Marco Boschi
info@marcoboschi.it
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: To Uwe
Posted: Thu Jul 05, 2012 10:23 AM
hi
you can use it from I modify.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Thu Jul 05, 2012 10:55 AM
Marco,
created 24x24, 32x32, 48x48, 64x64 PNG and BMP ( with transparent / Alphablended )
Borders are optimized, because of a few not clean background-areas.
the same set as < Gray > for disabled. I will test optimezed Buttons ( Colors )
Next placing a Download-link of a complete sample, as soon it is finished.

The reason of the bad quality is the background like You can see :



added a Shadow as new Logo
LogoNew.png ( 280 x 280 )



Download ( all Files )

http://www.pflegeplus.com/fw_downloads/logotest.zip

1. I cleaned the background
2. next increased the depth-sharpness
3. next adjusted contrast and brightness



Buttonstatus : BtnUp, Disabled, Overmouse, Click



With this little function, You can keep a different clicked BMP visible
Button-objects are a array => oBtn[10]

The 1. Button :

@ 20, 20 BTNBMP oBtn[1] OF oDlg2 2007 ;
SIZE 60, 30 PROMPT "32 x 32" ;
FONT oFont1 ;
LEFT ;
NOBORDER ;
FILENAME c_path + "\Logo\32x32N.bmp", ; // BtnUp
c_path + "\Logo\32x32C.bmp", ; // BtnDown
c_path + "\Logo\32x32D.bmp", ; // Disabled
c_path + "\Logo\32x32O.bmp" ; // Overmouse
ACTION SET_BTNBMP( oBtn, 1 )
oBtn[1]:lTransparent := .T.
oBtn[1]:cTooltip := "32 x 32"
oBtn[1]:lBorder := .F.

// -------- set any clicked Button to a different BMP ------------

FUNCTION SET_BTNBMP( oBtn, nBtn )
LOCAL I

I := 1
FOR I := 1 TO 10
// repaints all buttons to normal Images
oBtn[I]:SetFile( oBtn[I]:cBmpFile1, oBtn[I]:cBmpFile2 )
NEXT
// paints the selected button with a defined click-image
oBtn[nBtn]:SetFile( oBtn[nBtn]:cBmpFile2, oBtn[nBtn]:cBmpFile1 )
// resets back to normal Image
oBtn[nBtn]:cBmpFile1 := oBtn[nBtn]:cBmpFile2

RETURN NIL


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: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: To Uwe
Posted: Fri Jul 06, 2012 08:06 AM

Uwe,
I am amazed by your skill and kindness.
The person who made this logo is an artist but is not clever with Pc
This logo is ten years old

King Regards

marco

Marco Boschi
info@marcoboschi.it
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Uwe
Posted: Fri Jul 06, 2012 08:43 PM

This is wonderful, Uwe! Can you explain, step by step, how to remove that low quality background, please?

EMG

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Sat Jul 07, 2012 12:12 PM
Enrico,

I will show a solution, using freeware-tools.
I have still other choices, because owning some professional tools that makes it easy for me
creating special images : changing PIXEL-grafic to VECTOR-grafic and reverse .....

Like Marco explained, the logo is 10 years old.
Developer mostly used white logo-backgrounds for PRINTING.
( I still remember the problem some years ago )
These logos are not created for screen-design, taking care of transparent backgrounds.
The problem remains to the programmer.

To resize a SMALL raster-image like BMP, PNG converted to VECTOR



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: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Uwe
Posted: Sat Jul 07, 2012 12:17 PM
ukoenig wrote:Enrico,

I will show a solution, using freeware-tools.


Thank you! :-)

EMG
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 11:02 AM
Enrico,

lets start with the main-problem RESIZING

Like the 1. Screenshot shows, the original borders after resizing are very bad.
There is a brandnew Freeware-tool with exellent resize-results

Download :
http://sourceforge.net/projects/imageenlarger/

Preview of normal result ( bad outline ) :



The Tool-result of resizing. There are some adjustments like sharpness ... possible.



More will follow !!!

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: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 11:58 AM
ukoenig wrote:Enrico,

lets start with the main-problem RESIZING


Thank you. I'm waiting for the solution of the other problem that is the main problem for me, the background. :-)

EMG
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 04:06 PM

Uwe:

Thanks a lot for your tutorial, it is very useful for me.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 06:31 PM
In the meantime You can download the new release of GIMP 2.8
next I will explain the usage to increase the logo-quality.

http://www.gimp.org/



The results, how it works together :

The original 100x100 BMP with errors :
( Test with Pixelformer )



The Enlarger cleans the outlines. New size 300 x 300 PNG
( Test with Pixelformer )



With the new GIMP the white background is replaced with TRANSPARENT.
( small differences in white < see errors > are ignored )

Sharpen, contrast is used :

Final result 300 x 300 PNG ( transparent ) :
The different colors ( button-status ) You can create with GIMP as well.



The steps what to do with GIMP, I will explain in detail !

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: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 07:00 PM

Thank you. I will try the procedure on the next problem.

EMG

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Sun Jul 08, 2012 09:43 PM
This is the GIMP-part

Load the enlarged image in GIMP :

1. adjust Image-quality :





2. select the background, to make it transparent







3. save the Image and reload to change the colors for button-status if needed.



4. You can test the result with PIXELFORMER



Working on a MULTIMEDIA-tutorial with more details



From inside the Tutorial, You can connect to the Download-site



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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: To Uwe
Posted: Mon Jul 09, 2012 04:18 PM
The complete MULTIMEDIA-tutorial.
All infos and the needed Screenshots are included in one Exe-file.
It explains, how the different Tools are working together.
From inside, You can connect to the different Download-sites.

Download :

http://www.pflegeplus.com/fw_downloads/Logoadj1.zip



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: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: To Uwe
Posted: Mon Jul 09, 2012 05:14 PM

Uwe:

Nice and excelent job, thanks so much !.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion