I have a rather difficult question to ask. Here goes.
1, I have a form, buttons, scrollbox and image control.
2, I put an scrollbox in it, and centered (by hand) the
3, then I put an image inside the scrollbox, and center
it (by hand)
The reason I use the scrollbox is becuase I can center
the it (I want to do this) inside the form, because the
form can stretch depending on the size of the image.
And, because the scrollbox has feature for stopping the
I will be doing several things:
1, adding more controls, like trackbars and other controls.
2, my goal is to be able to size the image with these
trackbars (and also ie, using textbox x) too.
3, In addition to sizing, I also want to be able to CROP
the image (left/right, and top/bottom) independantly, and
have a newly resize and/or CROPPED image, all inside my
scrollbox, inside my form.
I'm having problems with all the above, but the most diffcult
part is the cropping and centering INSIDE my form.
What is the formula for:
1, centering my scrollbox INSIDE my form?
2, I'm using the BITBLT() to push image inside my scrollbox.
do I need to do anything special with the two as well?
example, the scrollbox and image.
Basically, I want to learn how to PROPERLY:
1, size an image
2, crop an image
3, center image inside a form
Sorry, I need to have the image control and the scrollbox,
not one or the other.
Thank you for (anyone) for removing my headacke.
0 · ·