Allegro Manual
Drawing primitives
clear_bitmap
clear_to_color
putpixel
_putpixel
_putpixel15
_putpixel16
_putpixel24
_putpixel32
getpixel
_getpixel
_getpixel15
_getpixel16
_getpixel24
_getpixel32
vline
hline
do_line
line
fastline
triangle
polygon
rect
rectfill
do_circle
circle
circlefill
do_ellipse
ellipse
ellipsefill
do_arc
arc
calc_spline
spline
floodfill
putpixel
Writes a pixel into a bitmap.
Description
void
putpixel
(
BITMAP
*
bmp,
int
x,
int
y,
int
color
)
;
Writes a pixel to the specified position in the bitmap, using the current drawing mode and the bitmap's clipping rectangle. Example:
putpixel
(
screen
,
10
,
30
, some_color
)
;
See Also:
getpixel
_putpixel
drawing_mode
makecol
Examples using this:
ex12bit
exalpha
exflame
exjoy
exstars
exswitch
Related Discussions
The following threads each have code containing this keyword:
mouse won't appear
1
allegro newbie, need help on my frst program
1
2
My blue cones are slower than my red cones
1
({A stupid question.})
1
Function to make blackness transparent
1
2
SLow running program
1
Change sprite color
1
Replacing specific color range
1
A crash..
1
doline error help plz
1
Application Hangs When Switching In/Out
1
Bitmap Rotation
1
Class Problem
1
Dissapearing vector
1
System Freeze after starting allegro
1
Terrain with masked bitmaps
1
Matching bullet start x,y with point on sprite that gets rotated
1
2
3
Page Flipping Problem - Flicker
1
Vector questions
1
Newbie help - program can't run correctly
1
[MinorHack] This Saturday?
1
Dumb Newb
1
2
3
draw_trans_sprite, Devcpp and optimizations
1
sizeof() for BITMAP data
1
Multiple declaration of a variable? Compile error I can't figure out
1
No red, only green and blue!
1
A question of transparency
1
How to change the color of my bitmap
1
translucent putpixel
1
How to creat a mesh bar image in c++
1
optimizing code with Assemmbly
1
Loading fonts
1
how to find and replace colours in a bitmap?
1
Everlands: the second Go
1
Image Manipulation (Enlargement)
1
in need of some opinions
1
Timers and high speed animation - need advice!
1
AllegroGL and translucent textures
1
MinorHack Attack!
1
2
Hypnotic backgrounds
1
Alpha Blending problems
1
How can I do this its driving me mad >.< (putpixel)
1
Bitmaps get confused
1
Note:
You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword:
MergeDCC
Rain Simulation Demo
TeTrist
Firakuga
Fruit Land
WormHole
Bamboozle Machinae
Christmas Fun
Cylindrix
Duel