newbie question about graphics

C

Cor

Hi newsgroup,

I know almost nothing about graphics.
But I want to try to learn that with something I want to use.

What do I want to do:
- Read a Gif, JPG or a BMP file in a picturebox
- Put, like in a photo enlarger, a rectangle around it so that always has
the dimension of 24/36 or 36/24.
- Cut a part out by putting the photo enlarger higher or lower or move the
picture up, down or aside (size the rectangle but keep the dimensions 24/36
or switch those to 36/24)
- Make the real size of the picture so, that it is only about 5 till 30kb,
when it becomes a jpg.
- Save the bitmap in a database as an image (that I know how to do myself)
- Write it back as a jpg from the database (that I know how to do myself)

I want to use as much Net members as possible and if possible no Api calls.
(But when needed the Api call is of course no problem, but a program with
only API calls is not what I am direct after, I think I will need it to
paint that rectangle but if I can avoid that too, it would be greath).

The part with photo enlarging (so it is called, but it is cutting), is my
big problem, and a good method to make the pictures the right size would be
too very nice. (Now when I do those things, I just delete x/n pixels)

Who will help me with that?

Many thanks in advance.

Cor
 
C

Cor

Eric,

Thanks for your quick answer, I only could see build ready code.

I did try it, to see if it was the same what I did want to make, but I think
it was different, and I want of course some source, not the build.

I never saw it, so maybe I spending a big patent, otherwise by putting it in
this newsgroup nobody can take patent on it because the idea is no more
unique.

But again,

Thanks a lot

Cor
 
F

Fergus Cooney

Hi Cor,

Sorry, Cor - I'm not neglecting you - I've had my head in the Registry.


- Read a Gif, JPG or a BMP file in a picturebox

picNice.Image = Image.FromFile ("C:\Pics\AVeryNicePicture.jpg")


- Put, like in a photo enlarger, a rectangle around it so that always has
the dimension of 24/36 or 36/24.

Do you mean you want the PictureBox to be this size? (I'm sure the
answer's No). Do you mean that whatever the size of the picture you want a
frame floating on top which acts as a cut-off or border - to show the area of
interest. (I think maybe Yes) Do you want this separate from the PictureBox so
that the picture is not 'harmed' (I think maybe Yes).


- Cut a part out by putting the photo enlarger higher or lower or move the
picture up, down or aside (size the rectangle but keep the dimensions 24/36
or switch those to 36/24)

Crirus is the man for this - Do you remember him and his map zooming?


- Make the real size of the picture so, that it is only about 5 till 30kb,
when it becomes a jpg.

This was answered recently but I remember not where.
But Google does - http://tinyurl.com/t34i

Regards,
Fergus
 
C

Cor

- Put, like in a photo enlarger, a rectangle around it so that always has
the dimension of 24/36 or 36/24.

Do you mean you want the PictureBox to be this size? (I'm sure the
answer's No). Do you mean that whatever the size of the picture you want a
frame floating on top which acts as a cut-off or border - to show the area of
interest. (I think maybe Yes) Do you want this separate from the PictureBox so
that the picture is not 'harmed' (I think maybe Yes).
Yes

- Cut a part out by putting the photo enlarger higher or lower or move the
picture up, down or aside (size the rectangle but keep the dimensions 24/36
or switch those to 36/24)

Crirus is the man for this - Do you remember him and his map zooming?

I remember yes but he went very far, but I know that yes, but he did want
something very special I thought, but now I write this, it is exact what I
want yes I take a look for it.

Hi Crirus, when you read this, do you have al little piece of end example
for me?
- Make the real size of the picture so, that it is only about 5 till 30kb,
when it becomes a jpg.

This was answered recently but I remember not where.
But Google does - http://tinyurl.com/t34i

I go look for it

Thanks

Cor
 
F

Fergus Cooney

Good morning Cor,

I've been waiting for you to come in because I have something very special
for you. ;-))

I'd give it to you now, but as I've had one of those "oh, I'll just try
this" moments which starts off promising and ends up as a spanner in the
works, I'm not ready yet.

Lol. Catch you soon,

Regards,
Fergus
 
C

Cor

Hi Fergus,

It is absolutely more than I could expect in my wildest thougths.

At the first moment that ctrl to zoom did not work for me, but I am sure it
does work for you, so I can making working that find out how it works. It is
exactly what I wanted to have as maximum information to start when I had
collected all information and now I have a better start. It is small, well
documentated and exact what I want.

Greath mate.

Of course you know I did read all that tictac again.

Please don't listen to Herfried, stay as I want for Herfried the same.

When he keeps on saying you have to leave I will go in again, but now I
think it is better trying to stay out. I think Herfried tried with that mail
example of you to make things good again, he said that your solution was
better than his, I cannot remember I ever saw that from him and before he
made a much longer message than he was used to that his was in the German
language.

(I sayd in that same thread that I had a nicer solution, was a writting
error but I do not correct it, it had to be, can be nice also)

Cor
 
F

Fergus Cooney

Hi Cor,

|| It is absolutely more than I could expect in my wildest thougths.

That's what I said - a special present!! ;-))

You are most welcome, it's nice to be able to do it for you.

Fond regards,
Fergus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top