请教:当我 insert-->resource-->选中 -->Bitmap-->import 加载图片时出现下面的错误,谢谢!

HeavyManual 2005-11-18 10:19:24
请教:
当我 insert-->resource-->选中 -->Bitmap-->import 加载图片时出现下面的错误:
The bitmap has been imported correctly,howerver beacuse it contains more
than 256 colors it cannot be loaded in the bitmap editor

各位大哥,是什么错误啊?
我要怎么改正呢?

谢谢!
...全文
237 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
HeavyManual 2005-11-18
  • 打赏
  • 举报
回复
谢谢 jxxx2967 大哥 和 jxxx2967 大哥!

继续向大哥请教几个问题:

void CMypro7View::OnDraw(CDC* pDC)
{
CMypro7Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);

CBitmap Bitmap;

Bitmap.LoadBitmap(IDB_BITMAP1);

CDC MemDC;

MemDC.CreateCompatibleDC(pDC);

CBitmap *pOldBitmap=MemDC.SelectObject(&Bitmap);

BITMAP bm;

Bitmap.GetObject(sizeof(BITMAP),&bm);

pDC->BitBlt(130,20,bm.bmWidth,bm.bmHeight,&MemDC,0,0,SRCCOPY);

MemDC.SelectObject(pOldBitmap);

// TODO: add draw code for native data here
}

问题1:
void CMypro7View::OnDraw(CDC* pDC)

中的 CDC* pDC 参数 是什么类型的?

问题2:
CDC MemDC;
CDC 这个类主要是起什么作用的?

问题3:

MemDC.CreateCompatibleDC(pDC);

CBitmap *pOldBitmap=MemDC.SelectObject(&Bitmap);

这两句话是什么意思?

问题4:
BITMAP bm;

BITMAP,这个类主要是起什么作用的呢?

问题5:
MemDC.SelectObject(pOldBitmap);

这句话是什么意思?


谢谢!
jxxx2967 2005-11-18
  • 打赏
  • 举报
回复
编辑就是对它的修改了,在VC中不能对高于256色的图片进行修改。

随便用一个图片编辑软件就可以得到低于256色的啊,比如WINDOWS画图,photoshop等
打开一个图片,然后另存为,其中有一项选择,256色。保存就OK了
loki2k 2005-11-18
  • 打赏
  • 举报
回复
你可以在vc提供的工具划啊,其他的工具多了,随便你怎么得到.
HeavyManual 2005-11-18
  • 打赏
  • 举报
回复
jxxx2967 大哥:
我刚刚开始学 VC
编辑和使用有什么区别啊?

还有,我怎么才能得到 低于 256 色的图片啊?
谢谢!
jxxx2967 2005-11-18
  • 打赏
  • 举报
回复
没有错误,你加载的图片高于256色,VC没有提供对高于256色图片的编辑器,所以在VC中不能编辑,只能使用
HeavyManual 2005-11-18
  • 打赏
  • 举报
回复
jxxx2967 大哥 和 jxxx2967 大哥!
再帮我鼎鼎啊!

谢谢!
FASMARM v1.42 This package is an ARM assembler add-on for FASM. FASMARM currently supports the full range of instructions for 32-bit and 64-bit ARM processors and coprocessors up to and including v8. Contents: 1. ARM assembly compatibility 2. UAL and pre-UAL syntaxes 3. IT block handling 4. Alternate encodings 5. Output formats 6. Control directives 7. Data definitions 8. Defining registers lists inside macros 9. Half-precision number formatting 10. Variants supported 11. Further information 12. Version history _______________________________________________________________________________ 1. ARM assembly compatibility There are a few restrictions how the ARM instruction set is implemented. The changes are minor and mostly have a minor impact. For the most part the basic instruction outline is the same. Where possible the original style is used but there are some differences: Not everything matches the ARM ADS assembly style, where possible the original style is used but there are some differences 1) label names cannot begin with a digit 2) CPSIE and CPSID formats are changed, use "iflags_aif" form instead of "aif" (eg. "CPSIE iflags_i" instead of "CPSID i") 3) SRS with writeback must have a separating space after the mode number and before "!" (eg. "SRSDB 16 !" instead of "SRSDB 16!") 4) macro, rept, irp, format, if, virtual etc. are all significant changes from the ARM ADS, so you will need to re-write those sections of existing code Original ARM Syntax | fasmarm Syntax ----------------------+---------------------- cpsie a | cpsie iflags_a | srsdb #29! | srsdb #29 ! ;or, | srsdb 29 ! _______________________________________________________________________________ 2. UAL and pre-UAL syntaxes fasmarm supports the original pre-UAL syntax and the newer UAL syntax. These two syntaxes only affect THUMB encodings. UAL stands for: Universal Assembly Language. pre-UAL syntax is selected wi

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧