Problem Using DC_BitmapTransparentColor with DCPUSHBUTTONXP
Problem Using DC_BitmapTransparentColor with DCPUSHBUTTONXP
hello Roger
because if I am using DC_BitmapTransparentColor({255, 255, 255}) in DCPUSHBUTTONXP CAPTIONARRAY the photos are not transparent
because if I am using DC_BitmapTransparentColor({255, 255, 255}) in DCPUSHBUTTONXP CAPTIONARRAY the photos are not transparent
- Attachments
-
- Captura.JPG (78.25 KiB) Viewed 15344 times
Nolberto Paulino
Regards
Regards
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
I think this is an Xbase++ problem.
Are you saying that only {255,255,255} has the problem?
Are you saying that only {255,255,255} has the problem?
The eXpress train is coming - and it has more cars.
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
I'm using this color for transparency {255,255,255} but it doesn't work for me
DC_BitmapTransparentColor( {255, 255, 255} )
@ 0.01+xRow,nCol+0.2+xCol DCPUSHBUTTONXP ;
CAPTIONARRAY aCaptions ;
SIZE 13.51, 4.35 ;
COLOR GRA_CLR_WHITE, aMenuVtaRapida[5] ; && GraMakeRGBColor({30,144,255}) ;
MOUSECOLOR GRA_CLR_BLACK, GraMakeRGBColor({245,205, 75}) ; && GraMakeRGBColor({30,144,255}) ;
MOUSEFONT '11.Calibri Bold' ;
BORDERCOLOR GRA_CLR_BLACK ;
ACTION PushMe( aApp,aMenuVtaRapida[1] ) ;
WHEN _When( aApp, !EMPT(aMenuVtaRapida[1]) ) ;
TOOLTIP aMenuVtaRapida[2] ;
PARENT oToolBarTop ;
MESSAGE aMenuVtaRapida[2] INTO oMsgBox
DC_BitmapTransparentColor( {255, 255, 255} )
@ 0.01+xRow,nCol+0.2+xCol DCPUSHBUTTONXP ;
CAPTIONARRAY aCaptions ;
SIZE 13.51, 4.35 ;
COLOR GRA_CLR_WHITE, aMenuVtaRapida[5] ; && GraMakeRGBColor({30,144,255}) ;
MOUSECOLOR GRA_CLR_BLACK, GraMakeRGBColor({245,205, 75}) ; && GraMakeRGBColor({30,144,255}) ;
MOUSEFONT '11.Calibri Bold' ;
BORDERCOLOR GRA_CLR_BLACK ;
ACTION PushMe( aApp,aMenuVtaRapida[1] ) ;
WHEN _When( aApp, !EMPT(aMenuVtaRapida[1]) ) ;
TOOLTIP aMenuVtaRapida[2] ;
PARENT oToolBarTop ;
MESSAGE aMenuVtaRapida[2] INTO oMsgBox
rdonnay wrote:I think this is an Xbase++ problem.
Are you saying that only {255,255,255} has the problem?
Nolberto Paulino
Regards
Regards
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
Any chance to turn those bitmaps into icons, Nolberto? This works ways better.
Your bitmaps may get scaled, and that can have effects to the color pattern.
Your bitmaps may get scaled, and that can have effects to the color pattern.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
Thanks tom
Because of your Answer, I cannot do this option because that photo is what the user assigned to the Product and can change.
Because of your Answer, I cannot do this option because that photo is what the user assigned to the Product and can change.
Tom wrote:Any chance to turn those bitmaps into icons, Nolberto? This works ways better.
Your bitmaps may get scaled, and that can have effects to the color pattern.
Nolberto Paulino
Regards
Regards
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
Code: Select all
I cannot do this option because that photo is what the user assigned to the Product and can change.
The transparent color is determined by the creator of the bitmap.
You are adding to the complexity of your program by requiring that background colors be transparent.
I suggest that you paint the bitmaps on the buttons in the way that the customer creates the bitmaps.
The eXpress train is coming - and it has more cars.
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
Thanks Roger
for his answer but I tell the client to put a white background on the maps
but it does not work.
for his answer but I tell the client to put a white background on the maps
but it does not work.
rdonnay wrote:If your customer is the creator of the bitmap, then there is nothing that you can do to handle transparency.Code: Select all
I cannot do this option because that photo is what the user assigned to the Product and can change.
The transparent color is determined by the creator of the bitmap.
You are adding to the complexity of your program by requiring that background colors be transparent.
I suggest that you paint the bitmaps on the buttons in the way that the customer creates the bitmaps.
Nolberto Paulino
Regards
Regards
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
Send me one of the bitmaps that has the white background.
The eXpress train is coming - and it has more cars.
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
What the client does is copy the photo from the internet
I attach the Image
I attach the Image
rdonnay wrote:Send me one of the bitmaps that has the white background.
- Attachments
-
- salsa linda.jpg (3.05 KiB) Viewed 15278 times
Nolberto Paulino
Regards
Regards
Re: Problem Using DC_BitmapTransparentColor with DCPUSHBUTTO
hi,
i have test your "salsa linda.jpg" and use this Codeand got this
i have test your "salsa linda.jpg" and use this Code
Code: Select all
PROCEDURE Main
LOCAL oBMP, cTitle := "test"
oBMP := XbpBitmap():new():create()
oBMP:Loadfile("salsa linda.jpg")
oBMP:transparentClr := oBmp:getDefaultBGColor()
NewGFXDocument( oBMP, cTitle )
RETURN
greetings by OHR
Jimmy
Jimmy