c++ gdi图像数组
我试图制作一组图像
Image something(L"something.png");
而不是
Image something[2];
something[0]=(L"something.png");
任何想法
im trying to make an array of images
Image something(L"something.png");
instead of that
Image something[2];
something[0]=(L"something.png");
any idea
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过指针使用 Gdiplus 图像和位图对象要容易得多。
考虑使用指针数组。如果您不想在完成后显式记住释放数组,则可以使用智能指针。在下面的代码示例中,我使用 CAutoPtr。
It's a lot easier to use Gdiplus image and bitmap objects by pointer.
Consider using an array of pointers. If you don't want to have to explicitly remember to free the array when you are done, you can use a smart pointer. In the code sample below I use CAutoPtr.