Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: is there something faster than GetPixel and SetPixel ? [moved] Pin
inayathussaintoori22-Oct-10 1:32
inayathussaintoori22-Oct-10 1:32 
GeneralRe: is there something faster than GetPixel and SetPixel ? [moved] Pin
Sauro Viti22-Oct-10 1:41
professionalSauro Viti22-Oct-10 1:41 
Questiongetting pixel color values by GetDiBit function Pin
inayathussaintoori21-Oct-10 2:01
inayathussaintoori21-Oct-10 2:01 
AnswerRe: getting pixel color values by GetDiBit function Pin
Sauro Viti21-Oct-10 2:18
professionalSauro Viti21-Oct-10 2:18 
GeneralRe: getting pixel color values by GetDiBit function Pin
inayathussaintoori21-Oct-10 2:32
inayathussaintoori21-Oct-10 2:32 
GeneralRe: getting pixel color values by GetDiBit function Pin
Sauro Viti21-Oct-10 2:50
professionalSauro Viti21-Oct-10 2:50 
AnswerRe: getting pixel color values by GetDiBit function Pin
GAJERA21-Oct-10 2:57
GAJERA21-Oct-10 2:57 
QuestionOverlap A Bitmap using DeviceContext Pin
002comp21-Oct-10 0:38
002comp21-Oct-10 0:38 
Hello Friends
I am Loading a bitmap using HBITMAP and then attaching it to CBitmap.
HBITMAP hBmp = (HBITMAP)::LoadImage(NULL,strFile, IMAGE_BITMAP,0,0, LR_LOADFROMFILE|LR_CREATEDIBSECTION);

   CBitmap bmp;
   bmp.Attach(hBmp);

Then I am Creating CompatibleDC using CClientDC.then using Bitblt to show image in tht Window.
CClientDC dcbkImage(pDoc->m_pWndTissu->hbkimg);
   CDC bmDC;
   bmDC.CreateCompatibleDC(&dcbkImage);
   CBitmap *pOldbmp = bmDC.SelectObject(&bmp);

   BITMAP  bi;
   bmp.GetBitmap(&bi);

   dcbkImage.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY);

   bmDC.SelectObject(pOldbmp);


After that I hv another functionality in my application is that I can create stripes vertically or Horizontally on tht window which contains my Image and that coloured stripes are getting draw pixel by pixel.

Now,the prob is tht stripes are getting draw but coming behind the image.
How can I make those stripes above the iamge?

Thanks In Advance.
Regards
Yogesh
AnswerRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 1:05
GAJERA21-Oct-10 1:05 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
Sauro Viti21-Oct-10 1:11
professionalSauro Viti21-Oct-10 1:11 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 1:18
GAJERA21-Oct-10 1:18 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
002comp21-Oct-10 18:46
002comp21-Oct-10 18:46 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 21:33
GAJERA21-Oct-10 21:33 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
002comp22-Oct-10 1:22
002comp22-Oct-10 1:22 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA22-Oct-10 4:26
GAJERA22-Oct-10 4:26 
QuestionAbout the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 22:38
federico.strati20-Oct-10 22:38 
AnswerRe: About the CWinThread object creation / deletion Pin
Sauro Viti20-Oct-10 22:44
professionalSauro Viti20-Oct-10 22:44 
GeneralRe: About the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 22:52
federico.strati20-Oct-10 22:52 
GeneralRe: About the CWinThread object creation / deletion Pin
Sauro Viti20-Oct-10 23:07
professionalSauro Viti20-Oct-10 23:07 
GeneralRe: About the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 23:32
federico.strati20-Oct-10 23:32 
GeneralRe: About the CWinThread object creation / deletion Pin
Sauro Viti21-Oct-10 0:12
professionalSauro Viti21-Oct-10 0:12 
QuestionProject Integration Problem Pin
AmbiguousName20-Oct-10 22:32
AmbiguousName20-Oct-10 22:32 
AnswerRe: Project Integration Problem Pin
Cedric Moonen20-Oct-10 23:16
Cedric Moonen20-Oct-10 23:16 
QuestionHow can I give write access to a file to all users? [modified] Pin
sashoalm20-Oct-10 21:54
sashoalm20-Oct-10 21:54 
AnswerRe: How can I give write access to a file to all users? Pin
«_Superman_»20-Oct-10 22:59
professional«_Superman_»20-Oct-10 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.