Results 1 to 6 of 6

Thread: Overlaying images in VB.Net

  1. #1
    Join Date
    Apr 2010
    Posts
    79

    Overlaying images in VB.Net

    I bunk two objects System.Drawing.Image. The goal is to " drop " at the forefront in the top left corner of an image , another image of smaller size ( manager possibly transparency ). The right to obtain a single image that I could insert into an Image List. What are the objects and methods I can use?
    Please help. Thanks in advance.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Overlaying images in VB.Net

    you can use some javascript functions, But to have one of the matches without going through server script is not win. This is usually done is that the image is made gdi (php ) or with handler (asp.net ) or filtering servlet ( jsp )
    If you want a real jpeg or gif on arrival. Otherwise if you want the interaction you have the SVG, the Silverligth or may be the flash (I do not know the programming mode flash) and the two languages is an interaction with javascript louse contact page contentment ( nb it's vector based on the xml).

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Overlaying images in VB.Net

    We all go through a series of articles through the different ways to treat or analyze an image with . NET framework . In part , I suggest you consider ways to access the pixels of an image based on its format. We offer course code C # VB.NET code but also responding to numerous requests I have been doing. . NET framework provides a number of classes dedicated to images . The utility " Reflector " shows that these classes are thoroughly using an unmanaged API : " GDI + ". The dll used is " gdiplus.dll ".

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Overlaying images in VB.Net

    It can be used for developments called unmanaged , like " gdi32.dll " , the old GDI API . Regarding development in the framework. NET via Interop , you can access those dlls in order to mitigate potential gaps in the Framework with regard to the pictures or drawings. It should be noted that the API "GDI + " does not take into account the optimizations associated with your graphics card. But using it , your application does not need Direct X installed on the client machine . The cons -part is that the API " GDI + " has obviously worse performance than the use of Direct X.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Overlaying images in VB.Net

    If the. NET framework provides access to a pixel of an image, using methods " getPixel 'and' setPixel "of the Bitmap class , this is not without consequence on the performance of your application . Imagine painting a small image of 320 pixels by 200 by adding a little blue at each pixel. We will call 64,000 times in the method " getPixel "for the pixel and 64,000 times the method " setPixel "to reassign the original color with the addition of blue. A little quick test shows that this approach is very slow. The reasons for this are simple : each time one reaches a pixel that is read or write , you go through a number of layers.

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Overlaying images in VB.Net

    The method " LockBits "refers us an object " BitmapData " with the following properties:

    1. " Width " is the width of the image or the image portion manipulated
    2. " Height "is the length of the image or the image portion manipulated
    3. " PixelFormat " is the format in which data are image
    4. " Scan0 "is the memory address of data
    5. " Stride " is the number of bytes occupied by a width of the image

Similar Threads

  1. Images don't display in IE 8
    By Bora Bora in forum Technology & Internet
    Replies: 11
    Last Post: 10-05-2011, 07:23 PM
  2. How to get images on Tungsten T3?
    By Mistaken in forum Portable Devices
    Replies: 4
    Last Post: 28-04-2011, 05:23 AM
  3. How to add images to Google Images
    By Monty1 in forum Tips & Tweaks
    Replies: 2
    Last Post: 14-02-2011, 01:15 PM
  4. Overlaying a still image on a video clip in WMM? Possible?
    By hudgevudge@yahoo.com in forum Windows XP Support
    Replies: 7
    Last Post: 03-02-2009, 11:27 AM
  5. Comments on the images
    By StarTraveller in forum Customize Desktop
    Replies: 1
    Last Post: 28-11-2008, 07:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,964,623.11481 seconds with 16 queries