• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 
22 November 2024, 11:31:25

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 - robert

1
Help & Questions / Re: transparent MNG
11 June 2008, 17:48:48
I really tried to make it work, but I have a problem.

To be able to display the image with the AlphaBlend API function or to use the function which is on the link you sent, I'd need to have an HDC to the image. This one I don't how to obtain for the current image in the TMultiImage object. Since speed is an issue for me I'd really like to have some streamlined solution and not converting the image back and forth between formats. Since you're the most familiar with the library I'd like to ask your opinion on this.

I'd appreciate any help.

Thanks.
2
Help & Questions / Re: transparent MNG
31 May 2008, 19:34:49
That's all, taken from your example.

//-----------
  FFileName := 'c:\a3.mng';
  FImage := TMultiImage.Create;
  FBitmap := TImagingBitmap.Create;
  Image.Picture.Graphic := FBitmap;
  try
    FImage.LoadMultiFromFile(FFileName);
  except
    FImage.CreateFromParams(32, 32, ifA8R8G8B8, 1);
    MessageDlg('Error when loading file: ' + FFileName, mtError, [mbOK], 0);
  end;
  FImage.ActiveImage := 0;

  Image.Picture.Graphic.Assign(FImage);
//------------
3
Help & Questions / Re: transparent MNG
31 May 2008, 05:02:34
Thanks for your help.

To answer the question, yes image1.png is perfect, while image2.png is the version I could display.

Where did I go wrong? How could I display the same image as image1.png?
4
Help & Questions / Re: transparent MNG
27 May 2008, 20:36:13
Hi!

The problem is consistent with all MNG frames and animations.
I don't think it's a problem with jpeg-compression, PNGs are used for the anim.

I attached a simple 2 frame animation.

Thanks for the help.
SMF spam blocked by CleanTalk