help for gflax and tga

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

neoxeo
Posts: 3
Joined: Sun Jan 30, 2011 10:20 pm

help for gflax and tga

Post by neoxeo »

Hi,

I try to use gflax on visual Basic 2010.
It's ok but I can't load TGA files
Dim gf As New GflAx.GflAx
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
gf.LoadBitmap("C:\Digital_Fighters_V045B\effets\explo.tga")
PictureBox1.Image = Image.FromHbitmap(gf.GetPicture.Handle).GetThumbnailImage(PictureBox1.Height, PictureBox1.Width, Nothing, Nothing)
End Sub
error : unknow format

it's ok with bmp, png... but not with tga. Can you help me ?

I want also use libgfl but it's impossible to register it. I have try with 334 or 311.
regsvr32 libgfl340.dll
Same message :
Echec de chargement du module. Le module spécifié n'existe pas.

Thank you for your help.

Neoxeo
User avatar
xnview
Author of XnView
Posts: 40573
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: help for gflax and tga

Post by xnview »

and this picture can be loaded in XnView?
Pierre.
neoxeo
Posts: 3
Joined: Sun Jan 30, 2011 10:20 pm

Re: help for gflax and tga

Post by neoxeo »

Hi Pierre,

The tga file doesn't load in Xnveiw. Same error : le fichier <explo.tga> a un format inconnu.

I have open with photoshop (reconize as RVB/8) and save as TGA on explo2.tga and now it's ok in Xnview.

I 'll try tonight with gflax. I can send you the original file if you want...

An idea why I can't register libgfl.dll ?

Thank you for your help.
neoxeo
Posts: 3
Joined: Sun Jan 30, 2011 10:20 pm

Re: help for gflax and tga

Post by neoxeo »

I have try with GFLAX the new file explo2.tga : it works !!!