473,834 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert Image to stdole.StdPictu re

Joe
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureF ile
API.

Thanks,
Joe
Nov 17 '05 #1
2 6845
Joe,

Add a reference to Microsoft.Visua lBasic.Compatab ility.dll (it's in the
framework directory, shipped standard). Once you have that, use the static
ImageToIPicture or ImageToIPicture Disp methods on the Support class in the
Microsoft.Visua lBasic.Compatab ility.VB6 namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Joe" <J_no_spam@_no_ spam_Fishinbrai n.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureF ile
API.

Thanks,
Joe

Nov 17 '05 #2
Joe
Works perfect! Thanks!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:eQ******** ******@TK2MSFTN GP15.phx.gbl...
Joe,

Add a reference to Microsoft.Visua lBasic.Compatab ility.dll (it's in the
framework directory, shipped standard). Once you have that, use the
static ImageToIPicture or ImageToIPicture Disp methods on the Support class
in the Microsoft.Visua lBasic.Compatab ility.VB6 namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Joe" <J_no_spam@_no_ spam_Fishinbrai n.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureF ile
API.

Thanks,
Joe


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3405
by: Bruce A. Wilkinson | last post by:
Greetings All I am currently attempting to pass an STDPicture object to the Picture property of a class module within a DLL. However, none of the usual methods seem to apply. The Microsoft Knowledge base has very little on the STDPicture object. Does anyone know if there is a build-in limitation that prevents you from passing this type of object? If so, is there a work around method I've missed? If anyone could point me toward some...
1
1913
by: Magnus | last post by:
I use IFontDisp and some other stuff from stdole in VB.NET, but sometimes Visual Studio simply refuses to compile, complaining about various stdole errors (for example, it wants me to add a reference to stdole even though I already have a reference to stdole). At this point, restarting Visual Studio can sometimes help, but sometimes not even that helps and than you have to restart the computer. Removing and reinserting the reference to...
1
3452
by: Diego | last post by:
Hi, Anyone can help to convert this code to C#? Public Class MonImageConverter Inherits System.Windows.Forms.AxHost Public Sub New() MyBase.New("59EE46BA-677D-4d20-BF10-8D8067CB8B33") 'note the GUID here has no meaning. End Sub
1
5322
by: Sagaert Johan | last post by:
How can i put the image in a stdole.StdPicture object in a Picturebox.Image ?
4
5852
by: CJ | last post by:
Hi I'm trying to send email via a c# app, and I've come across various ways to do it, but the way that seems best given my constraints is this little vbscript: Dim theApp, theNameSpace, theMailItem set theApp = CreateObject("Outlook.Application") Set theMailItem = theApp.CreateItem(0)
4
3218
by: Mark | last post by:
We're authoring a VS 2005 app that includes several EXE's and DLL's and also uses a COM component (a customer requirement). The COM component provides a graphic image to be used by the .NET app; the graphic is supplied as a "StdPicture" (AKA, IPictureDisp). How can I convert this to a .NET Image? A search of the object browser shows: protected static System.Drawing.Image GetPictureFromIPictureDisp(object picture)
8
10296
by: samadams_2006 | last post by:
I'm trying to find the namespace for stdole.dll Is there a tool out there that will help me do this?
2
20921
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help would be appreciated. I've been trying numerous ways to resize images, as I want to make store thumbnails, not full images in my database. -----------------------------------------------------------------------------
0
9800
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10516
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9340
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6961
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5802
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3987
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3085
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.