Vampyre Imaging Library Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Imaging 0.26.4 Released!

Author Topic: Latest version of Lazarus breaks Vampyre :(  (Read 1123 times)

jdarling

  • Imaging User
  • *
  • Offline Offline
  • Posts: 11
    • View Profile
Latest version of Lazarus breaks Vampyre :(
« on: 24 October 2007, 20:35:00 »

I just downloaded the latest snapshot of Lazarus only to find that it completely breaks when you try and install Vampyre.  The problem is that they (unannounced to anyone) have deprecated and removed CreateBitmapFromRawImage and a few others.

The fix is to open ImagingComponents and edit the following lines:
Change
Code: [Select]
if CreateBitmapFromRawImage(RawImage, ImgHandle, ImgMaskHandle, False) thento
Code: [Select]
if RawImage_CreateBitmaps(RawImage, ImgHandle, ImgMaskHandle, false) thenand Change
Code: [Select]
if GetBitmapRawImageDescription(Bitmap.Handle, @RawImage.Description) thento
Code: [Select]
if RawImage_DescriptionFromBitmap(Bitmap.Handle, RawImage.Description) thenand Change
Code: [Select]
if GetRawImageFromBitmap(Bitmap.Handle, 0, Classes.Rect(0, 0, Data.Width, Data.Height), RawImage) thento
Code: [Select]
if RawImage_FromBitmap(RawImage, Bitmap.Handle, 0, Classes.Rect(0, 0, Data.Width, Data.Height)) thenand FINALLY Change
Code: [Select]
FreeRawImageData(@RawImage);to
Code: [Select]
RawImage.FreeData;
Just thought others might want to know about this so that the next time you update you don't have to do the leg work yourself :).
Logged

Galfar

  • Administrator
  • Imaging User
  • *****
  • Offline Offline
  • Posts: 249
    • ICQ Messenger - 327174200
    • View Profile
    • Galfar's Homepage
    • Email
Re: Latest version of Lazarus breaks Vampyre :(
« Reply #1 on: 26 October 2007, 18:02:00 »

This Lazarus problem was already reported, but thanks anyway:
http://galfar.vevb.net/imaging/smf/index.php/topic,42.0.html
There should be comments how to get it working with new Laz
in SVN code.

I just hope they release Laz 0.9.24 soon. Until that time I have to
keep the old RawImage code active because I think that most people
use Laz 0.9.22. Or do you happen to know a way how to detect
Laz version during compile time? This would help a lot.

Logged

jdarling

  • Imaging User
  • *
  • Offline Offline
  • Posts: 11
    • View Profile
Re: Latest version of Lazarus breaks Vampyre :(
« Reply #2 on: 26 October 2007, 21:51:35 »

I don't know how to detect the lazarus version at compile time, but some place I was reading about performing an {$IFDEF ProcName} or something similar.  I'll take a look around and see if I can find it.

I noticed the thread after you pointed it out, but the title threw me and didn't notice it when I was looking for a fix.
Logged

Galfar

  • Administrator
  • Imaging User
  • *****
  • Offline Offline
  • Posts: 249
    • ICQ Messenger - 327174200
    • View Profile
    • Galfar's Homepage
    • Email
Re: Latest version of Lazarus breaks Vampyre :(
« Reply #3 on: 18 November 2007, 16:14:03 »

Lararus 0.9.24 is finally out so the new RawImage API is now used as default by Imaging.
Logged
 

Page created in 0.072 seconds with 20 queries.