Modifying A Pixel in a Picture's color
Hi
How can I open up a picture, change the color of a specific pixel and
resave the image? Would it be easiest to use a picturebox? Or an API,
and if it's API, which functions do I need?
Thanks
pulsar
.
Relevant Pages
- Re: Modifying A Pixel in a Pictures color
... The slowness may or may not be aproblem to you, depending on exactly what you are doing, but if it is a problem then you can speed it up by using the SetPixel API instead, as MikeD has already suggested. ... If you to manipulate individual pixels and you want a really fast method you'd be better off using the API to get your picture data into a standard array and working on that data. ... This is because when you load a picture into a VB picture box on a computer running at 16 bit colour depth then the pixel colours will not be exactly the same as the pixel colours of the original picture. ... when you set a pixel to a specific colour (using either the VB Pset method or the alternative API SetPixel method) you will not always get exactly the colour you asked for. ... (microsoft.public.vb.general.discussion) - Re: Dialog Boxes in PowerPoint
... Here's a bit of code that is based on Shyam's example of the Sleep api ... It opens the Insert Picture from File dialogue and hangs out ... Dim lShapeCount As Long ... Dim i As Integer, j As Integer ... (microsoft.public.powerpoint) - Re: Modifying A Pixel in a Pictures color
... BTW, very nice site Mike. ... then you won't be able to use the VB picture box anyway ... >> and you'll have to use the various API methods. ... (microsoft.public.vb.general.discussion) - GDI+ questions
... I'm using GDI+ api to draw a day time planning into a picture, it's great, ... I have one problem, 90% of the time, I don't need to redraw all the picture, ... (microsoft.public.vb.winapi.graphics) - Re: event before autoredraw
... > Basic displays the drawing displaced. ... DLL source code wouldn't help I'm afraid. ... but if, for example, you are setting the picture box Autoredraw to True ... The SetViewPointOrgEx API function that you are using (as I'm sure you ... (comp.lang.basic.visual.misc) |
|