Results 1 to 4 of 4

Thread: Writing pixels to image in CE (using VB6)

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Writing pixels to image in CE (using VB6)

    I am writing a program in VB6 and want to write directly to an imagebox or picturebox somehow. I posted this in http://www.vbforums.com/showthread.php?t=444408 about a week ago and there has been (1) NO activity at all in that forum since and (2) no reply so I thought I'd bring it here. Seeing as I'm writing in VB6 I guess it could be considered classic VB (and what could be more classic VB than CE :-))

    Anyway, here's the post I made back then, copied word for word:

    "I am writing software in Windows CE for my Win Mobile 5 handheld PC. The reason why I am using CE is I have very little (next to none) experience in .NET and I feel more comfortable writing in a VB6 environment (and I have a CE development system installed to allow me to do this in VB6).

    A piece of code I am writing displays a map on-screen (taken from streetmap) in an image box. It loads a BMP file (seems CE items can only load BMP or even less efficient image formats) and displays it in the image box which I will then use for navigation (not through a GPS system...I'm not writing that sort of program). I want to then read in the values of specific pixels within that image and perform a filter on the pixel and re-draw it on the image...I basically want to highlight specific streets and will have co-ordinate data on each street in the program.

    Has anyone got suggestions on how I would be able to manipulate pixels in an image like that?

    Another aspect of this program I am working on is a more efficient way to store map-style images by reducing the number of colours...in theory I could get the maps I am displaying into about 5k or so...I'm looking for a method that could manipulate an image fast enough in CE, but the priority here is the above (editing specific pixels rather than the whole image :-))"
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Writing pixels to image in CE (using VB6)

    Quote Originally Posted by smUX
    I am writing software in Windows CE for my Win Mobile 5 handheld PC. The reason why I am using CE is I have very little (next to none) experience in .NET and I feel more comfortable writing in a VB6 environment (and I have a CE development system installed to allow me to do this in VB6).
    I think you need to use eVB (Embedded VB) - the shrinked down version of VB6.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Writing pixels to image in CE (using VB6)

    Yeah, I have eVB installed on my handheld PC...I've had stuff running on it, that part of it works fine...I just can't seem to work out how to write to the images :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width