• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Galfar

31
Precompiled LibTiff for FPC has been finally added to Imaging for Win32 and Win64.
In Linux it's now using dynamic linking to libtiff since there it's already installed on most systems or simple to install where not.

33
This would be very helpful but unfortunately is not supported.

For each image format this must be done differently but at least the most common formats (JPEG, PNG) would be nice.

34
Unfortunately, I only had enough time to add TIFF support for Win64 and Linux for Imaging version for Deskew.
OSX support was nearly finished but I have no idea when I will be able to finish it.
35
Help & Questions / Re: LCLImager demo error
4 June 2014, 03:15:30
Please try the latest Imaging revision, it works for me in Lazarus 1.2 without problems.
Link: http://sourceforge.net/p/imaginglib/code/ci/default/tarball
36
You would have to directly interface with JpegLib, not a pretty thing to do  :(
37
I've been working on TIFF loader/saver for Imaging that won't need LibTiff as compiled objects
so in few weeks there will be TIFF support on more platforms (and LibTiff only as an option).
38
I've been working on TIFF loader/saver for Imaging that won't need LibTiff as compiled objects
so in few weeks there will be TIFF support on more platforms (and LibTiff only as an option).
39
This is fixed now, it was a problem with ZLib library in 64bit Linux.
40
Thanks for this work.

I want to include your LibTiffDelphi FPC modification in Imaging's repository (in Extras\Contrib).
But now I'm little confused what parts of which archive are needed.

Are compiled object files and *.pas files from 4.0.3 archive enough?
41
Help & Questions / Re: Screenshot from opengl
27 October 2013, 01:38:10
Support for frame delays and animation loop count was added finally.
42
Hello,
unfortunately it's not possible to set the background color with currently implemented rotation method.
One option is to blend the rotated image to another image filled with desired background color.
Image to be rotated must be converted to some format with alpha channel - background after rotation will
be not only black but also transparent.

Check out Deskew for code to merge image with background:
https://bitbucket.org/galfar/app-deskew/src/d9ee5df8742884404bf8df06ed7e0b2aab88ee8f/ImageUtils.pas?at=default#cl-149
43
Hi,

of what type exactly is MainImage?

Basically you must make sure that
Image.Picture.Bitmap (Image.Picture.Graphic) is of TImagingBitmap type before assigning.
If regular VCL TBitmap is there then transparency won't work.

What works for me is this:
Code (pascal) Select
// app start
ImagingGraphic := TImagingBitmap.Create;
Image.Picture.Graphic := FBitmap;
...
// image was updated
ImagingGraphic.Assign(MainImage);
Image.Picture.Assign(nil);
Image.Picture.Assign(ImagingGraphic);
...
// app exit
Image.Picture.Assign(nil);
ImagingGraphic.Free;
44
You are not doing anything wrong.
Compiler in XE3 is just more strict and does not allow calling constructors inside instances.

builddemos.bat and buildLibrary.bat probably uses older Delphi version that you have installed (do you?).

Solution is to use latest version of Imaging from here http://galfar.vevb.net/imaging/smf/index.php/topic,806.0.html
or use older Delphi version or FPC.
45
Help & Questions / Re: Trasparent Gif on Firemonkey
22 December 2012, 04:07:28
Have you checked ImagingFmx.pas unit?
It has a functions like:
Code (pascal) Select
{ Converts image from TBaseImage instance to FMX bitmap. Bitmap must be already instantiated.}
procedure ConvertImageToFmxBitmap(Image: TBaseImage; Bitmap: TBitmap);

that can directly convert from Imaging image to FMX bitmap (for FMX1 in XE2 only though).

Resaving image as GIF and loading it to FMX bitmap is a bad idea, you lose the alpha channel.
And it seems to me that you will only have the last frame in FMX image after this code is run.

Try something like this first:
Code (pascal) Select
FImage.LoadMultiFromFile('E:\espulso.gif');
FmxImage.BeginUpdate;
try
  ImagingFmx.ConvertImageToFmxBitmap(FImage, FmxImage.Bitmap);
finally
  FmxImage.EndUpdate;
end;

 
SMF spam blocked by CleanTalk