To Uwe

To Uwe

Postby MarcoBoschi » Thu Jul 05, 2012 8:30 am

Uwe,
please
this is our logo (Hard Service).
http://www.marcoboschi.it/hs100.bmp
Image

It's ok for document

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

But the effect is no good.

Image


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

Many thanks
marco
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: To Uwe

Postby richard-service » Thu Jul 05, 2012 10:23 am

hi
you can use it from I modify.
Image
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: To Uwe

Postby ukoenig » 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 :

Image

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

Image

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

Image

Buttonstatus : BtnUp, Disabled, Overmouse, Click

Image

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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby MarcoBoschi » Fri Jul 06, 2012 8: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
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: To Uwe

Postby Enrico Maria Giordano » Fri Jul 06, 2012 8:43 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Uwe

Postby ukoenig » 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

Image

Best Regards
Uwe :lol:
Last edited by ukoenig on Sat Jul 07, 2012 1:02 pm, edited 3 times in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby Enrico Maria Giordano » Sat Jul 07, 2012 12:17 pm

ukoenig wrote:Enrico,

I will show a solution, using freeware-tools.


Thank you! :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Uwe

Postby ukoenig » 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 ) :

Image

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

Image

More will follow !!!

Best Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Uwe

Postby Armando » Sun Jul 08, 2012 4: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
User avatar
Armando
 
Posts: 3228
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: To Uwe

Postby ukoenig » Sun Jul 08, 2012 6: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/

Image

The results, how it works together :

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

Image

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

Image

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.

Image

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

Best Regards
Uwe :lol:
Last edited by ukoenig on Sun Jul 08, 2012 7:01 pm, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby Enrico Maria Giordano » Sun Jul 08, 2012 7:00 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Uwe

Postby ukoenig » Sun Jul 08, 2012 9:43 pm

This is the GIMP-part

Load the enlarged image in GIMP :

1. adjust Image-quality :

Image

Image

2. select the background, to make it transparent

Image

Image

Image

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

Image

4. You can test the result with PIXELFORMER

Image

Working on a MULTIMEDIA-tutorial with more details

Image

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

Image

Best Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby ukoenig » Mon Jul 09, 2012 4: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

Image

Best Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: To Uwe

Postby Armando » Mon Jul 09, 2012 5: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
User avatar
Armando
 
Posts: 3228
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests

cron