Results for "Author: robert rayment"
Create/Edit Animated Cursors by Robert Rayment. As well as drawing the frames of an animated cursor, provides a set of step changes across the frames or a selected area for peppering, waving, swirling, squashing & Xfading. Frames can also be step changed for rotation and reduction. So this prog automates some kinds of animation. 1,4,8 & 24 bpp images can be handled. Some effects are included for 24 bpp images. Images can be loaded from ani, cur or ico files as well as captured from a bmp, gif or jpg. Title, author, number of frames, HotX & HotY and frame rates can be changed. For a new cursor any of the bpps can be selected. Some example ani-files are included. Cursors can be tested and saved at any stage. Please read the help for limitations. (Tested on Win98 & WinXP, Zip 82KB) (3 Oct Calc duration in frmDetails, system cursor preserved).
CodeScanMax(Update 6 Nov) by Robert Rayment. (Work around for forms with no code, addess some differences between Win98 & WinXP RichTB versions when setting Fonts & Coloring) .... This program is intended to give info on declarations and procedures used in a project. Also to display some items within procedures and a variety of unused items. To be most useful the exe can be placed on the Office toolbar or the Taskbar. It can then analyse the current project provided it is saved to disk. It is non-intrusive A second use is to copy/paste code from any other project while in the IDE. Please read limitations in the help file. I've deliberately left some unused junk in the program so you can see how it works straightaway. It's 'horses for courses' CodeScan suits me but try these others if you haven't already, they may be closer to what you want -- Code Fixer v2.2.9 Roger Gilchrist(Ulli) CodeId=53297 -- Deeplook v4.7 Dean Camera CodeId=54836 -- Code Statistics/.. v4.3 E O'Sullivan CodeID=39149 or later versions.-- Fast RTB Coloring Will Barden CodeId=39824.-- Back highlighting buggy CodeId=43509 (Tested on Win98 & WinXP, Zip 57KB).
PlayOids2 by Robert Rayment. (2nd update, move shape to mouse click point) (Quick update to rotate in plane). Just a bit of maths play for those who like that kind of thing. Demonstrates rotatable wireframe spheres, ellipsoids,cylinders etc with and without perspective. Aspect ratio, perspective distance and animation variable on the fly and save as bmp. Zip 9 KB.
Digital Image Subtraction by Robert Rayment. (Updated: faster Basic routine, ASM action on Weighting & GreyLevel scrollbars) Demonstrates the power of MMX machine code which is at least 10 times faster than Basic in an optimally compiled EXE. See Info for limitations. Sample BMPs. Assumes MMX & QueryPerform.. APIs. Zip 123 KB.
Semaphore & the International Flag Code by Robert Rayment. Enter any text and illustrate message using Semaphore or Ship flag codes. Learning aid. Straightforward code, easily embellished. (Zip 144 KB).
Beeper Madness by Robert Rayment. Plays 160 tunes through the PC speaker. Crazy! (Not Win98, Zip 143KB)
PolyShader by Robert Rayment. (+ Stars) Demonstrates shading of regular and user defined polygons. Zip 36 KB.
Print Graph Sheets by Robert Rayment. Prints British(US) or Metric scales see screenshot for variations. Zip 8KB.
Basic Sprite Demo by Robert Rayment. I used this to check the extractions from Region Selector (CodeId=64090). Might be instructive to a beginner. Since all the picture boxes are Autosize = True any images, masks & background picture can be loaded in when in the IDE. However, makes use of the VBSpeed timing class which allows smoother time steps than the VB Timer. Zip 174KB.
Digital Image Subtraction or Addition by Robert Rayment. (16th Mar. Correction to Save result) Combines two images by subtraction (Minus or Xor) or addition ( Whole Image or Edge Transparency). Subtraction only shows the difference bewteen two images and addition combines the images. The first image forms the base and the second, size equal or smaller than the base, takes the effects. Hand-scrolling is used rather than scrollbars, where the display is from a windowed array. Results can be saved as a bmp. Can run with Basic or MMX machine code. The machine code is held in a res file and the asm file included for reference. Couple of images included. CodeId=58968 has some subtraction images. dreamVB frames are used (CodeId=58966). Please see menu item Info. In particular the screen res needs to be >= 1024x768. Zip 189 KB.
Grey Options by Robert Rayment. Shows 8 different ways of changing an image to grey scale/effects (See code for descriptions). (Update BGR for RGB)(Zip 38 KB).
Simple 2D Room Planner by Robert Rayment. This basic room planner proved useful to a friend, so maybe for some of you. Note that the minimum screen resolution is 1280 x 768. Zip 29 KB.
Region Selector2 by Robert Rayment. (Upgrade of Region Selector CodeId=60865). This allows a region to be drawn on any bmp, jpg or gif image in 8 different ways. This region can then be saved (bmp) on the same sized rectangle as the original or reduced to a rectangle containing just the region. Regions can be drawn over an area larger than that displayed by using the arrow keys, to operate the scroll bars, simultaneously with the mouse. So - useful for extracting images and making masks. Also included are ini recent files list and drag-drop onto input picture box or the exe. __________________________________________________ Upgrade. Region Selector2 now has Screen Capture and Selectable Surround Color for Extracted Shape. Zip 40 KB.
Desktop Magnifier & Screen Color Picker by Robert Rayment: (Update7 16 Apr))(Added simple RGB color maker, saving Hex color to Clipboard and selectable from a button on the magnifier). Always on top, x2, x4,,,x32 magnification, RGB to Clipboard, exact location of cursor shown on magnifier with a black dot. Magnifier can be moved to any part of the screen. Keys: S to save RGB to clipboard. Incorporated code by LaVolpe to see layered windows! __________________________________________________ Update: Moved all controls onto picture box & made the form same size as picture box. Accomodate the 120 dpi as well as the normal 96 dpi. __________________________________________________ Update2: All on one Form. With Color Maker, added click on screen to set Scrollbars. Mag +- button 2,4,8,16,32. Move one pixel with arrow keys. Esc also to Exit. Toggle Color Maker. Added Matthew's border UC(CodeId 64572). __________________________________________________ Update3: All suggestions included, in particular black dot can be toggled black/white so visible on any background. Zip 19 KB. __________________________________________________ Update4: Simplified. Tidy up exitting. Zip 11 KB. __________________________________________________ Update5: Added Hide Icons from Augustin Rodriguez's 'Virtual Aquarium' CodeId=64997). __________________________________________________ Update6: Adjusted RGB picker for 120 DPI. Anyone know a general routine for this? __________________________________________________ Update7: Added Color pad (5 x 47773 colors) & Clipboard View. Zip 21 KB.
~RRChess~ by Robert Rayment. Program to solve checkmate problems and play chess games with another person or against the computer. The chess engine is not very strong, only operating at 4 or 5-ply, so you should be able to win fairly easily but it might surprise you at times. Making such a program bug-free I found quite difficult. So far as I can tell, all the legal moves, castling rules, en passant, promotion etc are OK. There are WAV sounds in the resource file for CHECK, CHECKMATE etc. Games and positions can be saved and loaded. See Help for more info. in particular the section on Starting a game. (Zip 500 KB). __________________________________________________ Update: to allow computer to play on, if is it's turn, when move list is double-clicked. Code cleaned up a bit from CodeFixer. __________________________________________________ Update2: added a couple of extra color schemes. These can be changed in Sub cmdColorSchemes. __________________________________________________ Update3: fixed bug on sound skipping. __________________________________________________ Update4: correction to playback when computer given odds - so many subtleties! __________________________________________________ Update5: some typos and menu re-arrangement.
BigNum Calculator by Robert Rayment. Does calculations on, up to, 1024 bit numbers (~310 dec & 256 hex digits). Operations on single numbers include shift left/right, roll left/right, Not, Factorial, Squared & Cubed. On two numbers - And, Or, Xor, Eqv, Imp, Div/Mod, Mul, Sub & Add. The full results can be displayed and saved to the clipboard or a file. All calculations are for positive integers only. Make sure to compile the program, particularly for large numbers. Machine code is used for some conversions to speed things up by a few seconds since they take much longer than calculations, principally for 4 digit factorials. For small numbers this has some educational value but very large numbers are just a curiosity, though apparently there is some use in encryption. Zip 27 KB. __________________________________________________ Update: Added view clipboard. __________________________________________________ Update2: Added permutations & combination. Div correction. __________________________________________________ Update3: Minor re-arrangements. __________________________________________________ Update 1st July 2007: Correct FullIntDivision routine.
~Wavettes~ by Robert Rayment. Designer for short WAVs using some maths formulae and a range of settings. Screenshot shows the settings. There are 3 dozen Presets (from the millions) to show the idea. These can be added to, from the program, and are saved in Presets.txt in the same folder. So can be easily editted with Notepad or whatever. WAVs can be saved as 8 or 16 bit mono, though there is usually not much difference. Some code is adapted from Ulli's prog at (CodeId=64845) and a UC container from Eric Madison at (CodeId=40130) is used. Making noisy WAVs is not to everyones's taste but I found it quite amusing and perhaps some of you will too! Zip 164 KB. __________________________________________________ Update (4th May) Compiles now with no advanced optimization. Seems to avoid a crash when exitting the exe on at least one system. One report I've had suggests that 'buzz' on headphones might be due to a Windows setting for volume or audio properties. __________________________________________________ Update (10th may) Behaviour of Play button modified to act more like normal button & some typos. __________________________________________________ Update (29th May) Replaced Play button with normal button. __________________________________________________ (31st May) Carles spotted an article in vbaccelerator.com which explains the real reason for 'crashes at shutdown' for some PCs when using XP themes with VB6. The URL is rather long so go to vbaccelerator.com, select VB section and search 'crashes at shutdown'. I haven't modified this code but you can try it if you want to. Otherwise simply delete the manifest file. __________________________________________________ Update (31st May) VBAccelerator code (see above) now included.
mini-Image Processor by Robert Rayment. Demo of one way to load a standard picture into an array using GetDIBits, where the picture box is just a viewport, with zooming (using StretchDIBits) and scrolling. Pictures can be saved as 24bpp BMP or JPEG, either from the viewport, the whole image from the array or a selection. To make it a bit more interesting I've added a few effects to play with. If the manifest file causes problems then just rename or delete it. Only tested on WinXP. Zip 29 KB. __________________________________________________ Update 3 Aug: Pictures with width or height < 15 pixels were disallowed, now changed to <= 2 pixels. Consequently a correction to FileOps, the Flute filter and scrZoom. __________________________________________________ Update 4 Aug: Added saving to JPEG using the Ron van Tilburg (John Korejwa) class at CodeId=50351. Zip 49 KB. __________________________________________________ Update 5 Aug: Minor correction to vertical scrollbar position when zooming in with the horizontal cross-wire at the bottom of the picture. Also turn Select OFF when a scrollbar switches off. __________________________________________________ Update 10 Aug: LoadPicture Function simplified a bit. __________________________________________________ Update 11 Aug: Moved vertical scroll bar to normal position on the right of the viewport. Also New pictures now open at top-left instead of at bottom-left. Correction to edging for SmoothSharp effect. Option to change filter effects to continuous or stepped. Plus some minor tidying up. Zip 51 KB. __________________________________________________ Update 12 Aug: Buttons above the filter scrollbars will now act on the scrollbar value without having to press the scrollbars, in continuous or stepped mode. __________________________________________________ Update 13 Aug: Added routine to cJpeg.cls to save jpeg from data array, with Ron van Tilburg's help. Plus a few minor adjustments. Forgot to put manifest file in.
Paper Trace by Robert Rayment. This consists of an image sheet (Loaded image), a translucent tracing sheet(Faded image to draw on) and a white paper sheet (The actual tracing that can be saved as a 2 color(B/W) BMP). The screenshot explains more. To show the method I've kept it simple in that large pictures are scaled down, avoiding scrollng code. Zip 36 KB. __________________________________________________ Update 10 Aug: LoadPicture Function simplified a bit. __________________________________________________ Update 14 Aug: Removed XOR wipeout in finished drawing by saving draw coords. Corrected a FreeDraw error. __________________________________________________ Update 17 Aug: Varying transparency does not now lose the drawing.
Plasma Play by Robert Rayment. Just playing with plasmas & palettes, if you like that kind of thing. Only tested on WinXP, should be OK elsewhere. If you have trouble with the manifest file then rename or delete it. Zip 60KB.