INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Matt ... question on image rendering  (Read 1391 times)

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Matt ... question on image rendering
« on: December 13, 2002, 07:46:02 am »

Hi Matt,

Can you tell me how you render an image in your ownerdraw imagelist?

I am using the IPicture->Render function but with certain images it doesn't display right ... and this can also be seen with things like Paint Shop Pro (so I am assuming they are using the same interface).

But with MC9 and in Windows explorer the images are displayed correctly.

Are you using IPicture->Render?
Are you shrinking the image to the thumbnail size?
Or are you doing something completely different?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42379
  • Shoes gone again!
Re: Matt ... question on image rendering
« Reply #1 on: December 13, 2002, 11:52:21 am »

IPicture is a pretty nice interface, but it's way too slow with big JPEG's.

So instead, we're using Intel's JPEG library for JPEG decoding, and our own (MMX tuned) code for drawing, stretching, resizing, etc.

There are several other JPEG implementations at http://www.codeproject.com that may help you out. (PaintLib, CxImage, etc.)

Another option would be for us to document the use of JRImage.dll, but it'd be a while before we could do that.

Thanks Rhino.
Logged
Matt Ashland, JRiver Media Center

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: Matt ... question on image rendering
« Reply #2 on: December 13, 2002, 09:40:17 pm »

Thanks Matt.

I already looked at the other JPEG libraries on codeproject but they were either a) bloatware for my needs or b) based on IPicture anyway.

I downloaded the Intel JPEG library ages ago but never got round to looking at it because of IPicture ... looks like I may go back to it.

If you do ever get a spare hour I think it would be great if you could document your JRImage dll.   Basically all I need is a function that takes a filename and the new x/y and for it to return a HBITMAP with the image sized accordingly.



Once again thanks for your help dude.
Logged
Pages: [1]   Go Up