Dev::Reduce image spacing?

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

nibly

Dev::Reduce image spacing?

Post by nibly »

First I would like to thank you for making this awesome library available for the public to use! It's the best one i've tested! :wink: Now to my other reason for posting here. I'm developing a small program to view some images, but i've stumbled upon a problem wich related to ListViews. The spacing inside the listview is totally screwed up too much. Another problem is the black background on thumbnails (ive tried the gflResizeCanvas wihtout any luck)

So after kicking my head a few times, i remembered that in XnView you have solved both those problems. So the question is: How did you do that? and can you please help me? :wink:

I've attached an image for you, so that you can see exactly what im talking about. Ohh.. and im programming in Assembly... but C or any other code example is good. I can read most languages.

Image

Thanks in advance,
nibly
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Dev::Reduce image spacing?

Post by xnview »

nibly wrote:First I would like to thank you for making this awesome library available for the public to use! It's the best one ive tested! :wink: Now to my other reason for posting here. Im developing a small program to view som images, but ive stumbled upon a problem wich related to ListView's. The spacing inside the listview is totally screwed up to much. Another problem is the black background on thumbnails (ive tried the gflResizeCanvas wihtout any luck)

So after kicking my head a few times, i remembered that in XnView you have sovled both those problems. So the question is: How did you do that? and can you please help me? :wink:

Iv'e attached an image for you, so that you can see exactly what im talking about. Ohh.. and im programming in Assembly... but C or any other code example is good. I can read most languages.

Image
I don't use the standard drawing method for listview, so i can make what i want, but i need to draw thumbnails...
Pierre.
nibly

Post by nibly »

Now thats what i call a fast response! :shock: So do you use ImageList_Draw on a DC surface inside listview instead? Or something else?
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

nibly wrote:Now thats what i call a fast response! :shock: So do you use ImageList_Draw on a DC surface inside listview instead? Or something else?
I don't use ImageList, so i use BitBlt
Pierre.
nibly

Post by nibly »

xnview wrote:
nibly wrote:Now thats what i call a fast response! :shock: So do you use ImageList_Draw on a DC surface inside listview instead? Or something else?
I don't use ImageList, so i use BitBlt


Last nite i went on a "research" spree, and found out that the only way i can do this is either to make my own control (too lazy) or just plain old use ownerdrawn listviews. Wich solves my problem just fine and dandy! :) Thanks for your response and keep up the good work! :D