From: Paulo Oliveira on
Hi all,

After upgrade to FabPaint v3, i cannot display images using
CreateFromResourceName(),
any idea,

oImg:=FabPaintLib{}
oImg:CreateFromResourceName(_GetInst(),"IMGLOGO")
SELF:oDCccImgApp:Image:=oImg
SELF:oDCccImgApp:ImageFit:=TRUE

TIA
Paulo Oliveira
From: Paulo Oliveira on
using,
oImg:CreateFromFile("D:\SOVEXPRESS\LOGOS\SOVSQLLOGO.BMP")

everting works fine, the problem seems to be in
CreateFromResourceName()

Paulo Oliveira

> Hi all,
>
> After upgrade to FabPaint v3, i cannot display images using
> CreateFromResourceName(),
> any idea,
>
> oImg:=FabPaintLib{}
> oImg:CreateFromResourceName(_GetInst(),"IMGLOGO")
> SELF:oDCccImgApp:Image:=oImg
> SELF:oDCccImgApp:ImageFit:=TRUE
>
> TIA
> Paulo Oliveira

From: Paulo Oliveira on

If i convert to GrayScale everthing works!!


oImg:=FabPaintLib{}
oImg:CreateFromResourceName(_GetInst(),"IMGLOGO")
oImg:GrayScale()
SELF:oDCccImgApp:Image:=oImg
SELF:oDCccImgApp:ImageFit:=TRUE

TIA
Paulo Oliveira



From: Fabrice Foray on
On 10 juil, 19:03, Paulo Oliveira <pa...(a)clipinfor.com> wrote:
> If i convert to GrayScale everthing works!!
>
> oImg:=FabPaintLib{}
> oImg:CreateFromResourceName(_GetInst(),"IMGLOGO")
> oImg:GrayScale()
> SELF:oDCccImgApp:Image:=oImg
> SELF:oDCccImgApp:ImageFit:=TRUE
>
> TIA
> Paulo Oliveira

Well,
so it seems there is something wrong into the way FabPaint handle the
"normal" image !

I will look at this one tomorrow.

Cheers,
Fabrice.
From: Paulo Oliveira on
Fabrice,

Many Thanks

Paulo Oliveira
>
> Well,
> so it seems there is something wrong into the way FabPaint handle the
> "normal" image !
>
> I will look at this one tomorrow.
>
> Cheers,
> Fabrice.