Page 1 of 1

To Uwe

Posted: Thu Jul 05, 2012 8:30 am
by MarcoBoschi
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

Re: To Uwe

Posted: Thu Jul 05, 2012 10:23 am
by richard-service
hi
you can use it from I modify.
Image

Re: To Uwe

Posted: Thu Jul 05, 2012 10:55 am
by ukoenig
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:

Re: To Uwe

Posted: Fri Jul 06, 2012 8:06 am
by MarcoBoschi
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

Re: To Uwe

Posted: Fri Jul 06, 2012 8:43 pm
by Enrico Maria Giordano
This is wonderful, Uwe! Can you explain, step by step, how to remove that low quality background, please?

EMG

Re: To Uwe

Posted: Sat Jul 07, 2012 12:12 pm
by ukoenig
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:

Re: To Uwe

Posted: Sat Jul 07, 2012 12:17 pm
by Enrico Maria Giordano
ukoenig wrote:Enrico,

I will show a solution, using freeware-tools.


Thank you! :-)

EMG

Re: To Uwe

Posted: Sun Jul 08, 2012 11:02 am
by ukoenig
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:

Re: To Uwe

Posted: Sun Jul 08, 2012 11:58 am
by Enrico Maria Giordano
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

Re: To Uwe

Posted: Sun Jul 08, 2012 4:06 pm
by Armando
Uwe:

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

Regards

Re: To Uwe

Posted: Sun Jul 08, 2012 6:31 pm
by ukoenig
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:

Re: To Uwe

Posted: Sun Jul 08, 2012 7:00 pm
by Enrico Maria Giordano
Thank you. I will try the procedure on the next problem.

EMG

Re: To Uwe

Posted: Sun Jul 08, 2012 9:43 pm
by ukoenig
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:

Re: To Uwe

Posted: Mon Jul 09, 2012 4:18 pm
by ukoenig
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:

Re: To Uwe

Posted: Mon Jul 09, 2012 5:14 pm
by Armando
Uwe:

Nice and excelent job, thanks so much !.

Regards