How to put into Access.Image control a part of bitmap

M

Marek S.

Hi,

I have *.bmp file that contains three XYPlot
(there is a screenshoot from full screen view)

It looks like that:

_________________
| |
| Plot1 |
|_________________|
| |
| Plot2 |
|_________________|
| |
| Plot3 |
|_________________|


I want to get Plot1 area (its width=width of bitmap, Height=1/3 height of
bitmap)
and put it into my Image control onto my form.


I've tried to use API BitBlt function, but I don't know how to get source
hDC (bmp file)
and Destination hDC (Image control).

Or, maybe is a way (with API) to copy a part bmp file form one to another,
somethink like that:

1. To load picture into memory - using stdole.LoadPicture(mypicturepath)

2. To get the ole data via Handle of loaded picture object

3. ???

4. Save picture from memory - using stdole.SavePicture


[I'm not sure it will be work]




Please, help ...............



Marek S.
 

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