News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Image Editor Test (03-08-2005)

Started by Ewayne, March 08, 2005, 10:21:26 PM

Previous topic - Next topic

Ewayne

Hi All,

I wanted an Icon/Cursor create/edit program that would be able
to load multiple file types, handle 24 bit color depth and
24 bit color depth with the alpha channel.

The two trial programs that I found that would do the job
were exspensive and had about 37 popup windows (I don't like
a lot of popup windows) and they were large in size, one
was 6.5 meg and the other was 2.5 meg.

So I thought I would write a convert program to convert
Icons and Cursors to a Bitmap and then convert the Bitmap
back to an Icon or Cursor.

I thought I could use my Photo Shop or Paint Shop to edit
the Bitmap, but my release of photo Shop does not like 32 bit
and my Paint Shop converts 32 bit to 24 bit.

After not being satisfied with the above, I decided to write my own.
It will load most formats (iPicture) and you can save the image
as a Bitmap, Icon, or Cursor in sizes 16x16 thru 48x48 and a dual
16x16/32x32 size with color depths including 24 bit with 8 bit alpha
channel.

So far it is nothing fancy, it has the normal flip flop, zoom and
the only edit tools that it has are the pencil, line, and bucket.
It has a rectangle selection with (marching ants), the lasso selection
draws, but you can not do anything with it, I'm still working on that.

You can have up to 16 undo's/redo's, and you can also test Cursors
and set their hot spots.

Let me know if it works.

04-10-2005  Made several changes.
Prior downloads (69)

Thanks,

Ewayne


[attachment deleted by admin]

Manos

By a first look,it seems good,except for the labels on the left and right of main window.
Labels size and distance is very small and the letters cut or overlay in my screen,(1024x728).
You must increase the size and distance.

Manos.

Ewayne

Hi Manos,

Thanks for the replay.

The fonts display ok on my systems (1024x728), but I increased the area
for the fonts for folks that might be having a problem.

You can go to the first post of this thread for the update.

Ewayne

Manos

The problem exists yet.
You have to increase the distance between combos,edits and labels.
Also,it is preferable to delete the cross in front of pencil.

Manos.

Ewayne

Hi Manos,

Could you post a screen shot, because like I said it's ok on my systems
and I had three other people check it and they said it was ok also.

I like the cross, I will probably have an option for the user to pick their
own tools.

Thanks,

Ewayne



Manos

OK Ewayne.

I send you the left and right sides.

Manos.


[attachment deleted by admin]

raymond

Ewayne

Dialog boxes have one major problem stemming from the fact that their size varies depending on the font size set by the user. I have had such a problem with one of my programs. :eek

To see the effect of this on your program, change the font size on your system from normal to large (and even to extra large). At high screen resolutions, many people have to use those larger font sizes in order to be able to read text on their screen.

If you do notice problems due to changing font size, the only recourse may be to design dialog boxes to fit each font size and select the proper one for display after verifying which font size is being used. The size and location of everything else in your window must also be adjusted accordingly. You may have a lot of fun with this. :boohoo:

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

Ewayne

Hi raymond,

I have changed my font size to large  and extra large and it still looks ok on my XP system.

I will try changing the DPI on my Win98 and NT.

Thanks,

Ewayne

Ewayne

Hi Manos,

I just had a look at your screen shots and WOW it does look bad  :tdown.

What is your dpi setting?

Thanks,

Ewayne

Manos

I use 1024x728,screen 17" and I have change the font size on my system from normal to large,(125%).

Manos.

QvasiModo

Simply using actual dialog boxes (instead of controls created with CreateWindowEx) should solve the problem. But it might look better if you keep a couple different image sets for your buttons, to be used with different font sizes (so you won't have a large button with a tiny image inside it).

Hope that helps! :)

Ewayne

#11
Hi,

I'm a little confused, I've written hundreds of programs and this is the first time I've had
problems of this magnitude.

I set the fonts on every control on the main window (not the two small dialog boxes) so
it should not matter if you change the system font to large or extra large and or change
the screen size to 800x600.

On my systems I changed the system font size to large (and extra large on the XP system)
and the font size for the controls did not change (The font size in the title bar, menu, and status bar changed).
Same thing when I change the display to 800x600.

Is it posible that the systems that are having the problem are not recognizing the font that I'm using, it is a standard
font: (MS Sans Serif)?

I'm going to do a little test I set the y Hot Spot control to a large size, so if that stays the same size as the other
controls then the system is not recognizing the font.

I'm attaching the test program.

P.S. It looks like the other MASM forum has been hacked again!

Thanks,

Ewayne




Ewayne

Hi,

This is what the control fonts  looks like on my systems no matter what the system font size is set at.

Ewayne




[attachment deleted by admin]

Manos

Have a look in follow attached to see how thisĀ  looks like on my system.

Manos.


[attachment deleted by admin]

Ewayne

#14
Hi Mano,

I don't know why the WM_SETFONT doesn't seem to be working on your system and the other
systems that are not displaying properly.

I've had it tested on several other systems with the DPI changed to 120 and the fonts look ok.

If you have time download the attachment. There is an option on the menu to change the three fonts
that the program uses and let me know what font and size displays ok on your system.

Thanks,

Ewayne