jpg2bmp(IT)

  • Thread starter Thread starter ALESSANDRO Baraldi
  • Start date Start date
A

ALESSANDRO Baraldi

Hi...!
I'm search to convert jpg to bmp, with API.
I'm not sure but Access do it "On the Fly" with the Library(...??)

Enyone know someting way to do it....!!
Tanks.

@Alex.(IT)
 
I'm search to convert jpg to bmp, with API.
I'm not sure but Access do it "On the Fly" with the Library(...??)

I'm not aware of any such direct capabilities, but check www.lebans.com to
see if Stephen has put up any samples for this.

-- Dev
 
Dev Ashish said:
I'm not aware of any such direct capabilities, but check www.lebans.com to
see if Stephen has put up any samples for this.

-- Dev

Thanks Dev, i'm just do it..... all OK.
Perfect, it's very easy....!

Bye.
@Alex(IT)
 
Hi Dev,
you can use the StdPicture object to load in the Jpeg and then save it
out to a disk based bitmap file with the SavePicture method. Here's some
sample code:

Private Function CreateBitmapFile(fname As String) As String

Dim obj As Object


Set obj = LoadPicture(fname)
If Not IsNull(obj) Then

SavePicture obj, "C:\SL11-52"
DoEvents
End If


CreateBitmapFile = "C:\SL11-52"
Set obj = Nothing

End Function


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Stephen,

you can use the StdPicture object to load in the Jpeg and then save it
out to a disk based bitmap file with the SavePicture method. H

Good to know... Thanks

-- Dev
 
Stephen Lebans said:
Hi Dev,
you can use the StdPicture object to load in the Jpeg and then save it
out to a disk based bitmap file with the SavePicture method. Here's some
sample code:

Private Function CreateBitmapFile(fname As String) As String

Dim obj As Object


Set obj = LoadPicture(fname)
If Not IsNull(obj) Then

SavePicture obj, "C:\SL11-52"
DoEvents
End If


CreateBitmapFile = "C:\SL11-52"
Set obj = Nothing

End Function


Very easy to use....!
Good metod.

Thanks so much..!

@Alex.(IT)
 
Stephen Lebans said:
Hi Dev,
you can use the StdPicture object to load in the Jpeg and then save it
out to a disk based bitmap file with the SavePicture method. Here's some
sample code:

Private Function CreateBitmapFile(fname As String) As String

Dim obj As Object


Set obj = LoadPicture(fname)
If Not IsNull(obj) Then

SavePicture obj, "C:\SL11-52"
DoEvents
End If


CreateBitmapFile = "C:\SL11-52"
Set obj = Nothing

End Function


This metod in AXP is very Good, But I need to do it in old
version A97 and SavePicture is not available....!!

Have any more information about it....??

Thanks.
@Alex(IT)
 
The method does work with A97.
Try setting a Reference to "OLE Automation". The file is "
/Windows/System/StdOle2.tlb"

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Stephen Lebans said:
The method does work with A97.
Try setting a Reference to "OLE Automation". The file is "
/Windows/System/StdOle2.tlb"


Yes, sorry for a silly question....!
Many Thanks.

@Alex(IT)
 
Back
Top