Samstag, 2. Januar 2010

JPEG-AddOn for Rave 7.7 and Delphi 2010

The christmas-vacation is a good time to look into Delphi 2010 & Rave 7.7 BE and try to create an update of the AddOn from Rave Reports. I started with the JPEG-AddOn and I remembered that the VCLJPG-package is changed since 2009 because Embarcadero adds new GIF and PNG-format. Here you'll find a beta-version of the JPEG-AddOn for Rave 7.7 and Delphi 2010 for testing (and using, on your own risk, of course). Thx for a feedback if it works in your environment..

6 Kommentare:

  1. Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

    AntwortenLöschen
  2. Hello,

    I need the jpeg addon for Rave 7.5 BE.
    Can you tell we where to look for it?

    Peter

    AntwortenLöschen
  3. thank ypufor share this article... keep on delphi programming

    AntwortenLöschen
  4. If I compile for XE6 / Rave 11 no components appear in Rave even thought the package appears in the list? Has anyone had luck with Rave 11?

    AntwortenLöschen
  5. @Tristan Marlow: I've compiled in the meantime nearly all AddOns and will publish the Rave11 version in the next weeks here on the blog.

    AntwortenLöschen
  6. Thanks Thomas, I have worked around it for now by changing LoadFromStream in RvCsStd for TRaveGraphicImage.

    Uses a TWICImage to convert the stream. http://docwiki.embarcadero.com/Libraries/XE6/en/Vcl.Graphics.TWICImage

    This may only work Delphi 2010 upwards.

    procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
    var
    WicImage: TWICImage;
    begin { LoadFromStream }
    UnloadAltImage;
    FAltImage := CreateGraphic;

    // Use new TWICImage to convert images.
    WicImage := TWICImage.Create;
    try
    WicImage.LoadFromStream(Stream);
    FAltImage.Assign(WicImage);
    finally
    FreeAndNil(WicImage);
    end;

    // FAltImage.LoadFromStream(Stream);

    if not ImageValid then
    begin { Invalid image format }
    UnloadAltImage;
    end; { if }
    end; { LoadFromStream }

    AntwortenLöschen