Home > other >  Part of emwin how to display a bitmap in the window (note, in addition to cutting figure)
Part of emwin how to display a bitmap in the window (note, in addition to cutting figure)

Time:09-20

Is this
I'll create a window controls
Then on the basis of the control to display a picture (assuming that the picture the original size of 100 x100)
But I think according to the demand according to the different parts of the image (for example, show only the upper or lower)
Do not adopt the method of slices (such as to cut the image into two according to the demand, according to my pictures because practice need points is very fine, then slice impractical)

I tried to set up an appropriate user cutting area, and then use GUI_DrawBitmap for display can be successful (this is in the absence of window controls)
However, once the add window controls, the above methods are not
Feeling on the window controls, all display shall be carried out with the help of other controls, such as display number, I can't follow one's inclinations must first create a TEXT control, then displayed on the control; Or I can't like above the background random call GUI_DrawBitmap display images, you must first create an IMAGE control, and then use the
IMAGE_SetBitmap can display images
All other applicable to draw the background of function (I think so, like the above mentioned GUI_DrawBitmap, GUI_DispString, etc.) on the window controls are not applicable, or draw these functions do, just in the background, for the window controls cover it, so don't see

So I want to ask next, is there any way, I think so before, keep me posted on like IMAGE the IAMGE controls, and then in the IMAGE control set up an appropriate user shear zone, so that it can show the part, I want to show but results won't work

Wish someone would do me a favor, give a thought to go, thank you!

CodePudding user response:

The image loaded into memory, should be able to take out for a a pixel point, according to the need to remove points to draw what parts should be feasible,

In the development of early using EVC WinCE when dealing with a such application, can I just code, how to also won't turn out

CodePudding user response:

reference 1st floor cftxlin response:
loaded into memory, the image should be able to take out for a a pixel point, according to the need to remove points to draw what parts should be feasible,

In the development of early using EVC WinCE when treated with one of these applications, how can I just code, also did not turn out


Windows platform can be this kind of treatment, using double buffer technique, image is loaded into the memory DC first, and then from the memory DC copy the specified location and size on the part to the actual display of the DC,

CodePudding user response:

Don't know the building Lord solved the didn't, you said this is very practical in the actual project
  • Related