creation bitmaps
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
creation bitmaps
is it possible to create small bitmaps size 16 files?
Having two colors (color1 and color2) and making the gradient of these two colors, create a small bitmap and save in bitmap format?
Having two colors (color1 and color2) and making the gradient of these two colors, create a small bitmap and save in bitmap format?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Re: creation bitmaps
A gradientpainter that can save / create bitmaps from 64x64 to 16x16
gradientstyle horizontal or vertical with selected color-position

is that the style You need
gradientstyle horizontal or vertical with selected color-position
two colors (color1 and color2) and making the gradient of these two colors

is that the style You need

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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: creation bitmaps
no
i have two colors ok ?
i not have the image or bitmap ok?
i wish create a image or bitmap
and save it as a file ok ?
this file must show a small box filled with the gradient made with two colors...
i hope you understood me
i have two colors ok ?
i not have the image or bitmap ok?
i wish create a image or bitmap
and save it as a file ok ?
this file must show a small box filled with the gradient made with two colors...
i hope you understood me
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: creation bitmaps
Code: Select all | Expand
local hBmp
local nClr1 := CLR_HRED
local nclr2 := CLR_WHITE
local nWidth := 16
local nHeight := 16
hBmp := FW_MakeYourBitmap( nWidth, nHeight, { |hDC,w,h| GradientFill( hDC, 0, 0, h, w, {{ 1, nClr1, nClr2}} ) } )
FW_SaveImage( hBmp, "redwhite.bmp" )
DeleteObject( hBmp )
ximage( "redwhite.bmp" ) // verify
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: creation bitmaps
thanks Rao
I remember there was something of it but Inot found the test on my hard diskes.
thanks
I remember there was something of it but Inot found the test on my hard diskes.
thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Re: creation bitmaps
Silvio,
the painter uses the same functions but with a big difference
1. visual design of the images
2. multiple images can be saved in one sesson ( file-counter ) like Img16_1.bmp, Img16_2.bmp ...
3. filesizes from 16x16 to 64x64 are possible
4. displayed RGB-colorvalues
Download
http://www.pflegeplus.com/DOWNLOADS/Grdpaint1.zip
new design with some improvements
usage :
it starts with white colors
1. select the 1. color from the browser ( to be defined with the radio )
with the displayed gradient on the righthandside You can adjust the brightness
2. select the second color
with the slider You can adjust the color-position
3. select the image-output-size
4. select save
5. create the next bmp
( filenames will have a running number and saved in the directory < MYBITMAP > )

regards
Uwe
the painter uses the same functions but with a big difference
1. visual design of the images
2. multiple images can be saved in one sesson ( file-counter ) like Img16_1.bmp, Img16_2.bmp ...
3. filesizes from 16x16 to 64x64 are possible
4. displayed RGB-colorvalues
Download
http://www.pflegeplus.com/DOWNLOADS/Grdpaint1.zip
new design with some improvements
usage :
it starts with white colors
1. select the 1. color from the browser ( to be defined with the radio )
with the displayed gradient on the righthandside You can adjust the brightness
2. select the second color
with the slider You can adjust the color-position
3. select the image-output-size
4. select save
5. create the next bmp
( filenames will have a running number and saved in the directory < MYBITMAP > )

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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: creation bitmaps
Uwe,
thanks but I need for another questions
Menupopup

Combobox draitem

thanks but I need for another questions
Menupopup

Combobox draitem

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- Otto
- Posts: 6404
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: creation bitmaps
Silvio, very nice screens.
Best regards
Otto
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: creation bitmaps
after two year I Init to have a stable release!!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact: