Displaying images

Hi,

I wanted to create an application that can display RGB images. Can anyone
give me any suggestions, tips, pointers, links to tutorials/samples et al.
on whats the easiest way to do this?

Hope to hear from someone out there.


0
7/21/2004 2:58:02 PM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
447 Views

Similar Articles

[PageSpeed] 32

You need to create a HBITMAP (this can be done using CBitmap), create a
compatible DC (using CreateCompatibleDC), and select it into that DC.
Then you can use BitBlt or StretchBlt to draw from the compatible DC to the
Window DC (usually within a WM_PAINT message).

"Rookie" <dominicjoseph@rediffmail.com> wrote in message
news:%23qpzgJzbEHA.1004@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I wanted to create an application that can display RGB images. Can anyone
> give me any suggestions, tips, pointers, links to tutorials/samples et al.
> on whats the easiest way to do this?
>
> Hope to hear from someone out there.
>
>


0
colin9783 (37)
7/21/2004 4:32:50 PM
"Rookie" <dominicjoseph@rediffmail.com> wrote in message
news:%23qpzgJzbEHA.1004@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I wanted to create an application that can display RGB images. Can anyone
> give me any suggestions, tips, pointers, links to tutorials/samples et al.
> on whats the easiest way to do this?
>


Look for Microsoft DIB related samples, like diblook:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_sample_mfc_DIBLOOK.asp

Vishal


0
7/21/2004 5:12:19 PM
Colin Girling wrote:

> You need to create a HBITMAP (this can be done using CBitmap), create a
> compatible DC (using CreateCompatibleDC), and select it into that DC.
> Then you can use BitBlt or StretchBlt to draw from the compatible DC to the
> Window DC (usually within a WM_PAINT message).
> 

....or if your feeling particularly lazy, you can use the CImageList to 
do all your drawing bitmap needs. The MSDN library contains quite good 
samples/tutorial for both methods however.

A
0
7/21/2004 5:34:03 PM
Reply:

Similar Artilces:

How to avoid down loading an image
I want an aspx page to first call a sub that uses confirm() to ask the user if he want an image displayed. Something like I show below. I could have check() simply use window.location to go to the next page if the user refuses and to return if he says to display the image. However, even if he refuses the image has already been down loaded which is should not happen if the user says "no".. How would you do this? Thanks <asp:Content runat="server" ID="Content4" ContentPlaceHolderID="BottomCPH"> <<script t...

Imaging software compatible with Access
Does anyone know if an imaging software package that is compatible with Access? I want to be able to scan documents into access as attachments to a certain tracking number for a discrepancy database. Any insight would be appreciated. Let me rephrase the question... We are designing a database to track discrepancies. We want to be able to scan an image of the documents into the database attached to a tracking number. What imaging software do you suggest would be best for this function? Butterfly4385 wrote: >Does anyone know if an imaging software package that is compatible with >Acces...

Can I put a windows folder into outlook2003 display?
I need to know how to put a windows folder on the left hand display that directs to a windows directory to keep my outlook from getting full. Create new user folders and put emails in there instead of the default = folders Right click on Personal Folders on the left side in OL and select New = Folder. Give it a name=20 --=20 Peter Please Reply to Newsgroup for the benefit of others Requests for assistance by email can not and will not be acknowledged. "Hanson23" <Hanson23@discussions.microsoft.com> wrote in message = news:8113C273-5B6A-432A-9305-D0A4672EF783@microsoft.c...

Displaying add'l value in Combo box
I have a combo box that uses a table as its row source. When the combo box displays, I would like it to display an add'l value not in the table, e.g. "<All>" I find the easiest way is to provide a listfill function. Here's mine: Public Function AddAllToList(c As Control, id As Variant, row As Variant, col As Variant, code As Variant) As Variant ' ListFill function - use as RowSourceType for listbox ' Set listbox.rowsource to correct sql ' Set listbox.tag to (eg) 2;<<All>> to override defaults: ' 1;( All ) Static rs As Recordset...

My Outlook 2003 Will Not Display "Signature" on Insert Menu
For reasons that escape me entirely, my installation of Outlook 2003 on this one computer (on a network of 5) does not display "Signature" as an option on the Insert menu. Instead, it displays Insert Symbol (with S underlined.) If there's a way to change that menu structure through Customize, I don't find that either. It will apparently allow me to rearrange the sequence that options appear on the Insert menu, but will not allow me to delete or add any options. How can I get the Insert menu to display Signature as an option instead of Symbol? I shall greatly appreciate yo...

Display only folders with CFileDialog
Here is some standard code to display and return the name of a selected file. Could someone please tell me what I must change to display (and return) only folder names? Thanks. TCHAR szFilters[] = _T("Text files (*.txt)|*.txt|All files (*.*)|*.*||"); CFileDialog dlg(TRUE, _T("txt"), _T("*.txt"), OFN_FILEMUSTEXIST | OFN_HIDEREADONLY, szFilters); if (dlg.DoModal() == IDOK) { CString fileName = dlg.GetPathName(); // TODO: Whatever } Why not use SHBrowseForFolder instead? -- Ajay Kalra [MVP - VC++] ajaykalra@yahoo.com "Ray Mitchell" &l...

Displaying from: in new email messages
I am running Outlook 2000 on my laptop, with new emails creating using Microsoft Word. I have a default address that I often send email from, but sometimes I specifically want to change the sent from address and use a different account. That I know how to do, by changing it in the message under options, but I often forget to do that. Is there a way of displaying the account I am sending the message from while creating the email? Or, can the default account to be used be specified for each contact, rather that globally for all contacts? ...

Images and Excel Grids
Hi, I am creating a file from a web page with a .xls extension. The user wants an excel spreadsheet to contain product data, 1 item is an image. I want to have the image appear in the spreadsheet. I can have the image appear (i just use <img src="#ThisFileNameImageURLGif#" align="center" border="0" hspace="2">) and its inserted in the sheet. However I want it to stay within a cell and be lined up with headings and its own row of data. At the moment I get a load of images just "piling in" on top of each other How an i force the image to st...

Win Media player10 the Skin does not display File, option,
Hello SOD, The Media player does not display the "file, option and other menu" instead it gives a skin which is not comfortable. To be honest I believe there is some registry issue which will unlock my default skin. thanks & Regards, Mayank Pressing Ctrl+1 should put WMP back into Full Mode, which will always show the default skin. You might have to press Ctrl+M too, to see the actual menus. Regards -- Tim De Baets http://www.bm-productions.tk Mayank wrote: > Hello SOD, > > The Media player does not display the "file, option and othe...

Linked JPEG image
I have a form with a link to a JPEG image. How do I suppress the progress bar before the picture appears? This does not happen when it is linked to a BMP image. I prefer to link to JPEG because it is smaller and also is the same format as my digital camera.Any help would be grateful.Thanks Take a look at:http://www.mvps.org/access/api/api0038.htmKen SheridanStafford, England"Allen Yap" wrote:> I have a form with a link to a JPEG image. How do I suppress the progress bar > before the picture appears? This does not happen when it is linked to a BMP > image. I prefer to link to...

Dynamics AX data displayed in CRM iframes
Apologies if I'm not framing this question correctly (and for the pun), but I've just seen a demo of Dynamics CRM where customised forms were displaying data from a legacy system database using iframes. I'm wondering if we can show the enterprise portal forms that list (for instance) all of the sales orders for a customer in the same way, and if so how easy is it to develop and deploy those customised views in Dynamics CRM? Thanks Tim Schofield On Feb 20, 3:36=A0am, Tim Schofield <TimSchofi...@discussions.microsoft.com> wrote: > Apologies if I'm not framing this ...

Displaying stored jpgs as pictures in a report
hello, MS ACCESS 2003 on XP PRO I've never stored jpgs in a table before, but now I apparently need to. I figured out (i think) how to store a jpg in a table using OLE OBJECT data type. But when I try to make a report of that ttable, the picture displays as a box with the file name displayed as text. How can I get the image to display on the report? Thank you, -- BlueWolverine MSE - Mech. Eng. Go BLUE! Try using an UNbound object frame and inserting the jpg in it. -- Milton Purdy ACCESS State of Arkansas "BlueWolverine" wrote: > hel...

Regional Options from control panel not displayed in Format Cells
Please can somone help me. I have searched on this topic but Alas I can not find an answer. So here is my question. When you set your number formats under control panel -> Regional options they are the ones EXCEL should use for formatting. My example is I want Parenthesis around my negative numbers ( ) . I do not want a - sign infront of number or it to be RED. So I have set my negative number symbol to () under the regional options. But if you start Excel and put in a negative number then goto Format cells -> numbers the option STILL show only a - or RED. I.E. it does not give...

Excel Rep Builder Not Displaying in SharePoint 2010 Excel Services
I am having difficulty viewing an Excel Report Builder report in Excel Services on SharePoint 2010. The error states that Excel Services does not support “Query Tables (also known as “External Data Ranges”). I know that SP 2010 can access external data sources (there is even a place to install the ODC file, separately)… so I don’t know why a simple Exel Reports Builder won’t work. Any suggestions? ...

XXX Account Number Display in Account List
Is there a way to "un-hide" the xxx masks in the Account Number field in the Account List Display? No. But R-click Details reveals that and more. It's pseudo-security at best. See http://umpmfaq.info/faqdb.php?q=169. "Raybo" <raybo@hotmail.com> wrote in message news:OoepFmi5EHA.1260@TK2MSFTNGP12.phx.gbl... > Is there a way to "un-hide" the xxx masks in the Account Number field in > the Account List Display? > Thanks, I saw that post earlier, but thought there might be some type of setting in an update that allows the account to be ...

HELP! sum value to be displayed in sheet 2 when data is in sheet 1
How do I do this? any ideas -- Message posted from http://www.ExcelForum.com =SUM(Sheet1!A1:A100) -- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "Muppet >" <<Muppet.18bcuz@excelforum-nospam.com> wrote in message news:Muppet.18bcuz@excelforum-nospam.com... > How do I do this? any ideas? > > > --- > Message posted from http://www.ExcelForum.com/ > =SUM(Sheet1!$A:$A) as an example for sum of Column A in Sheet1 -- Message posted from http://www.ExcelForum.com ...

Email signatures with images
Hello, Can anyone tell me the correct or recommended way to insert an image into an email signature ?, the most common way can see is to link to an image on a web server somewhere. You can also copy and paste into front page, where it some how encodes it into the HTML, but apparently this only works for Microsoft based email clients, and the image is of poor quality. I would be grateful for any suggestions Thanks Kind Regards -Neil Young ...

How can I display multiple series in a pie chart?
Here's an example data / chart spreadsheet: http://temp.ancientpc.net/po/piechart.xls Ideally what I want to do is force the pie chart to use the most recent / lowest data series through some way of calculating the lowest non-empty cell location, but I don't know if that's possible. If not, I just want to be able to choose which data series to plot. Even though at the moment there's 8 series available under Chart -> Source Data, it will only plot series 1 in the pie chart. Hi, A pie chart will normally only display a single data series. It can be manipulated to disp...

Image index.
Hello. I want to use imagelist. The nodes on the image list has connected to an itemlist, which I have added some pictures on it. On runtime - everytime I select a specific node, the image is changed to : imageIndex. I cannot see a way to avoid that situation. I want that when I click on node - the image on it won't be changed. How can I do that ? Thanks :) On 05/06/2010 11:52, Mr. X. wrote: > On runtime - everytime I select a specific node, the image is changed to > : imageIndex. > I want that when I click on node - the image on it won't be changed....

RSS Feed List only displays three feeds
I'm using Outlook 2007 for a month now and imported a list of RSS/ATOM feeds. I'm still using my old feed reader in parallel and noticed that since about a week most of the feeds were not updated in Outlook. I opened the send/receive settings to see what's included when doing a send/receive and found that only three feeds were displayed. They worked but all of the other did not. I then created a new group named "RSS feeds" and included the three listed feeds. After several send/receive on this group, I finally received messages from other blogs as well. The settin...

Have cell display the right-most non-blank cell?
Sorry about the turgid Subject line :-) What I mean is: How do I have a cell display the contents of the last non-blank cell within a range (just one row). And what I mean by 'last' is the one furthest to the right. For example, let's say the range is A1:M1 What can I have in cell N1 that will copy the contents of the last non-blank cell in the range, reading left to right. So if cells A1 to J1 contained data, but K1:M1 were blank, J1 would be the last non-blank cell (left to right).Alternatively, if this cell was cleared, I1 would qualify as the last non-blank cell, so ...

Can I display blank dimensions in a pivot table?
By default it seems as though Excel pivot tables supress the display of a dimension member, if the measures are blank across the row (or column) of that dimension. Is there any way to display all rows of a dimension even if all measures for that row are blank? WI AZ CO Jan 100 250 325 Feb 50 March 123 47 May 223 145 I would like to see a row for April even though it has no data. Thanks, If you double click on the grey header button, there's an option for Name, subtotals and at the bottom: "Show Items with No Data&...

Outlook 2000
Anyway to get Outlook 2000 to display HTML e-mails that others send to me? ...

Displaying in a cell the formula from another cell
Hi, is it possible to show (in text) the formula from the cell next to it? For example, in cell A1 I have the formula ='D:My Documents\[test.xls]Sheet1'!D18 which gives as result "18". Can I display in cell A2 the text "D:My Documents\[test.xls]Sheet1'!D18" somehow? Arjan Arjan How about a user defined function? Enter this and take the cell you wish to return the formula string from as the single parameter Function ShowFormula(rngInput As Range) As Variant Application.Volatile True ShowFormula = rngInput.Formula End Function -- HTH Nick Hodge Microso...

View with selectable text/images
Hi, Does anyone know what kind of CView MSN is using for the chat window (the window with the selectable text and smileys)? If it isnt a CView, can i get some pointers on how to make a view with selectable text and images? Thx in advance :) Thomas 'Da_QuiK' Schueremans Thomas, Use Spy++, it shows that it is a RichEdit View. Tony "Thomas" <Da_QuiK@fake.email.com> wrote in message news:%23759GWzzDHA.3436@tk2msftngp13.phx.gbl... > Hi, > > Does anyone know what kind of CView MSN is using for the chat window (the > window with the selectable text and smil...