Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


ploting just one pixel


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2007, 06:39 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default ploting just one pixel

I need to be able to plot a single pixel.

Before someone said use line but ...
if you do form.line(x,y,x,y, ) you get nothing
and form.line(x,y,x+1,y, ) gives 2 pixels???
Reply With Quote
  #2 (permalink)  
Old 11-30-2007, 07:38 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,462
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Using ImageLib, you can "draw" a single pixel by cahnging its color...

--------------------------------------------------------------------------------
From the Help files...

Changes the color of the specified pixel.
Syntax: SetPixel (x As Int32, y As Int32, color As Color)


Example:
bitmap1.SetPixel (5,5, cRed)
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fastest way to get pixel colour value? DavidN Questions & Help Needed 6 09-02-2007 07:40 AM
2 pixel displacement specci48 Questions & Help Needed 2 08-29-2007 07:04 PM


All times are GMT. The time now is 01:07 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0