• 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.

Topics - jdarling

1
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 if CreateBitmapFromRawImage(RawImage, ImgHandle, ImgMaskHandle, False) then
toif RawImage_CreateBitmaps(RawImage, ImgHandle, ImgMaskHandle, false) then
and Changeif GetBitmapRawImageDescription(Bitmap.Handle, @RawImage.Description) then
toif RawImage_DescriptionFromBitmap(Bitmap.Handle, RawImage.Description) then
and Changeif GetRawImageFromBitmap(Bitmap.Handle, 0, Classes.Rect(0, 0, Data.Width, Data.Height), RawImage) then
toif RawImage_FromBitmap(RawImage, Bitmap.Handle, 0, Classes.Rect(0, 0, Data.Width, Data.Height)) then
and FINALLY ChangeFreeRawImageData(@RawImage);
toRawImage.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 :).
2
Hey Galf, was going through my hard drive and noticed my version of hq2x for Vampyre.  Since you helped me fix the code in the first place, was wondering if you wanted to include it in Vampyre as a feature.  Latest version can be downloaded at: http://www.eonclash.com/PGD/hq2x.zip

My little contribution back for such a great lib :)
3
I noticed that when I use LoadGLTextureFromStream to load a graphic and the graphic isn't proper power of 2 the final texture is up-scaled to the next power of two.  This causes blurry images when rendering and makes sprite sheet locations all sorts of "fun".  Any chance that there is a way to have the new texture created not scale the original image and instead create a new texture that is proper power of 2 and just has empty space around it?

A picture might be worth a 1000 words in this case.  Given the following source (72x128):

The texture created by LoadGLTextureFromStream is:

I'd rather it be:
(or similar)

As when rendered with OpenGL the current version becomes blurry.

Thanks,
- Jeremy

PS: Sill loving Vampyre :)
4
Help & Questions / 1 bit image output
2 July 2007, 18:24:36
I've been playing with OCR and the Triss library.  I'm finally ready to incorporate Triss into my application but need to be able to generate 1 bit black and white bitmaps in order to run the OCR against the images.  Can anyone explain how to use Vamp to do this?

Thanks,
- Jeremy
SMF spam blocked by CleanTalk