Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Display jpeg in a grid cell Collapse All
Subject Author Date
Offer Har Feb 7, 2008 - 5:01 PM

Dear Support,

We need to display a jpeg in a grid cell.

Please advise

Thanks,
Ron.

Offer Har Feb 11, 2008 - 8:24 AM

Thanks for the information - we’ll try it out.

Technical Support Feb 11, 2008 - 6:08 AM

In Prof-UIS there are a CExtBitmap class that represents an image and CExtCmdIcon that implements an icon. The latter contains a set of CExtBitmap objects that represent different states of an icon. The CExtBitmap class works with .BMP images only.

There is a CExtSkinBitmap classin the ProfSkin project. It is derived from CExtBitmap and allows you to work with .PNG images. Both .BMP and .PNG image formats are lossless and the difference is that PNG is well compresed and of a much lesser size. The .JPG, .GIF and many other formats are lossy and that is why we do not support support them. So, you can convert .JPG images to .BMP or .PNG before using them or, otherwise, you need some image processing library for loading .JPG images. There are FreeImage and CxImage libraries that can be used for this task. Both libraries are a collection of other libraries for loading/saving different image formats. They provide unified APIs for accessing image data and apply some effects. The ProfSkin library and these libraries are using LibPNG and ZLib libraries for loading/saving .PNG formats and not let you to see low level APIs of the LibPNG library. Both FreeImage and CxImage libraries are using LibJPG library for working with .JPG image format. You can also use LibJPG directly, but FreeImage and CxImage libraries can be integrated easier and faster.

http://freeimage.sourceforge.net/
http://www.codeproject.com/KB/graphics/cximage.aspx
http://www.xdp.it/cximage.htm