English 中文(简体)
• 展示下游乐团
原标题:Display the next frame of sprite GDI
  • 时间:2010-05-13 01:24:12
  •  标签:
  • gdi+

我制作了一部含有许多图像的 sp。 我只见Blt,显示立场和形象以及形象。

如果我想显示一个比图,但从Width[24]到Width[48],不是从该比图开始。

感谢阅读:

问题回答

www.un.org/Depts/DGACM/index_french.htm

BOOL BitBlt(
  __in  HDC hdcDest,
  __in  int nXDest,
  __in  int nYDest,
  __in  int nWidth,
  __in  int nHeight,
  __in  HDC hdcSrc,
  __in  int nXSrc,
  __in  int nYSrc,
  __in  DWORD dwRop
);

仅将部分来源复制到您的目的地发展中国家,请使用NXSrc = 24和NWidth = 24(与你从第24栏到48栏复制的范例相匹配)。





相关问题
.NET Framework and Gif transparency

Before Windows 7 (and the new image codecs: WIC) I used the following (very fast but dirty) method to create a Gif encoded image with white as the transparent color: MemoryStream target = new ...

Draw emf antialiased

Is there a way to draw an emf metafile (exported form a drawing tool) with antialiasing enabled? The tools I tried are not capable of exporting emf files antaliased so I wondered if I can turn it back ...

Calculate the bounding box of a GDI+ drawing

I am drawing an image from MetaFile (emf) and then apply some rotation transformations to it all within the OnPaint of a UserControl. After applying those transformation how can I calculate the normal ...

wxGraphicsContext dreadfully slow on Windows

I ve implemented a plotter using wxGraphicsContext. The development was done using wxGTK, and the graphics was very fast. Then I switched to Windows (XP) using wxWidgets 2.9.0. And the same code is ...

Best practice for custom control painting in Winforms?

Normally when I override the OnPaint method, I create pens and brushes, etc inside it and then dispose them. I also read somewhere that instead of recreating these pens and brushes, etc to create ...

Troubles drawing to my ClientRectangle using GDI+ & C#

I am working on understanding collision detection and have decided to create a program that simulates Pacman. Simply put when a Pacman runs into a Ghost it dies. I specify how many Pacmen I would ...

热门标签