Some questions

Voca

Well-known member
Joined
Nov 3, 2003
Messages
75
Location
Germany
Im having a couple of questions:
First of all Id like to describe you what Im up to do:
Im having an image, selected by the user. On this image there shall be text inserted automatically.

My problems are the following:

1.) I need to rescale the image to fit to screen, as the size must not automatically fit to screen. How can I resize any picture to fit to screen?

2.)I need to insert the text with the correct color. How do I know which colors are in the image, especially in a certain area of the image (e.g. down right quarter of screen)?

This should be all, at the moment.

Hope, somebody can help me on one of these question

Many thanks in advance

Voca
 
This may point you in the right direction;

1.) I need to rescale the image to fit to screen, as the size must not automatically fit to screen. How can I resize any picture to fit to screen?.....

Create a graphic object/bitmap whatever and use its resize/scale method etc.

2.)I need to insert the text with the correct color. How do I know which colors are in the image, especially in a certain area of the image (e.g. down right quarter of screen)?

Again load the image into a bitmap and use the GetPixel method to get the pixel and its colour at the coordinates you state
 
Back
Top